2014-09-22 07:42:20 +06:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include "debug.h"
|
|
|
|
|
2014-11-14 14:46:07 +06:00
|
|
|
#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
2014-09-22 07:42:20 +06:00
|
|
|
|
|
|
|
debug_config_t debug_config = {
|
2014-11-14 19:53:25 +06:00
|
|
|
/* GCC Bug 10676 - Using unnamed fields in initializers
|
|
|
|
* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676 */
|
2014-11-14 14:46:07 +06:00
|
|
|
#if GCC_VERSION >= 40600
|
2014-09-22 07:42:20 +06:00
|
|
|
.enable = false,
|
|
|
|
.matrix = false,
|
|
|
|
.keyboard = false,
|
|
|
|
.mouse = false,
|
2014-11-14 19:53:25 +06:00
|
|
|
.reserved = 0
|
|
|
|
#else
|
|
|
|
{
|
|
|
|
false, // .enable
|
|
|
|
false, // .matrix
|
|
|
|
false, // .keyboard
|
|
|
|
false, // .mouse
|
|
|
|
0 // .reserved
|
|
|
|
}
|
2014-11-14 14:46:07 +06:00
|
|
|
#endif
|
2014-09-22 07:42:20 +06:00
|
|
|
};
|