aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/debug.c')
-rw-r--r--tmk_core/common/debug.c41
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" 2Copyright 2011 Jun Wako <wakojun@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the 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__) 9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17#include "debug.h"
5 18
6debug_config_t debug_config = { 19debug_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};