diff options
Diffstat (limited to 'tmk_core/common/debug.c')
| -rw-r--r-- | tmk_core/common/debug.c | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/tmk_core/common/debug.c b/tmk_core/common/debug.c index bea96dfc1..ea62deaa8 100644 --- a/tmk_core/common/debug.c +++ b/tmk_core/common/debug.c | |||
| @@ -1,24 +1,25 @@ | |||
| 1 | #include <stdbool.h> | 1 | /* |
| 2 | #include "debug.h" | 2 | Copyright 2011 Jun Wako <wakojun@gmail.com> |
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 3 | 8 | ||
| 4 | #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) | 9 | This program is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | #include "debug.h" | ||
| 5 | 18 | ||
| 6 | debug_config_t debug_config = { | 19 | debug_config_t debug_config = { |
| 7 | /* GCC Bug 10676 - Using unnamed fields in initializers | 20 | .enable = false, // |
| 8 | * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676 */ | 21 | .matrix = false, // |
| 9 | #if GCC_VERSION >= 40600 | 22 | .keyboard = false, // |
| 10 | .enable = false, | 23 | .mouse = false, // |
| 11 | .matrix = false, | 24 | .reserved = 0 // |
| 12 | .keyboard = false, | ||
| 13 | .mouse = false, | ||
| 14 | .reserved = 0 | ||
| 15 | #else | ||
| 16 | { | ||
| 17 | false, // .enable | ||
| 18 | false, // .matrix | ||
| 19 | false, // .keyboard | ||
| 20 | false, // .mouse | ||
| 21 | 0 // .reserved | ||
| 22 | } | ||
| 23 | #endif | ||
| 24 | }; | 25 | }; |
