summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorPablo Martínez <58857054+elpekenin@users.noreply.github.com>2025-05-22 15:31:15 +0200
committerGitHub <noreply@github.com>2025-05-22 23:31:15 +1000
commit955809bd5aee8b1444595b450eeeef1f42799995 (patch)
tree08da1f696605925286f681a2b738fa5f35cd0386 /tmk_core
parentfa24b0fcce2c5f3330f2d798c3caf91a130babdb (diff)
Add `compiler_support.h` (#25274)
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/vusb/vusb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c
index 43cce6eb2f..1f0f82664b 100644
--- a/tmk_core/protocol/vusb/vusb.c
+++ b/tmk_core/protocol/vusb/vusb.c
@@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21 21
22#include <usbdrv/usbdrv.h> 22#include <usbdrv/usbdrv.h>
23 23
24#include "compiler_support.h"
24#include "usbconfig.h" 25#include "usbconfig.h"
25#include "host.h" 26#include "host.h"
26#include "report.h" 27#include "report.h"
@@ -80,7 +81,7 @@ enum usb_interfaces {
80 81
81#define MAX_INTERFACES 3 82#define MAX_INTERFACES 3
82 83
83_Static_assert(TOTAL_INTERFACES <= MAX_INTERFACES, "There are not enough available interfaces to support all functions. Please disable one or more of the following: Mouse Keys, Extra Keys, Raw HID, Console."); 84STATIC_ASSERT(TOTAL_INTERFACES <= MAX_INTERFACES, "There are not enough available interfaces to support all functions. Please disable one or more of the following: Mouse Keys, Extra Keys, Raw HID, Console.");
84 85
85#if (defined(MOUSE_ENABLE) || defined(EXTRAKEY_ENABLE)) && CONSOLE_ENABLE 86#if (defined(MOUSE_ENABLE) || defined(EXTRAKEY_ENABLE)) && CONSOLE_ENABLE
86# error Mouse/Extra Keys share an endpoint with Console. Please disable one of the two. 87# error Mouse/Extra Keys share an endpoint with Console. Please disable one of the two.