summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-08-06 06:53:38 +0100
committerGitHub <noreply@github.com>2021-08-06 15:53:38 +1000
commitc588d232cb97904400b048db923ee86e5bf9abcc (patch)
treee5895ef695c5a16fb3567f95e3ca64c75b9001e4
parentb9a1b61f6ac42bbd73123d86058ec8b7048d5da6 (diff)
Avoid name conflicts with usb_hid Arduino code (#13870)
* Avoid name conflicts with usb_hid Arduino code * Fix tests
-rw-r--r--quantum/quantum.h2
-rw-r--r--tmk_core/common/arm_atsam/platform_deps.h (renamed from tmk_core/common/arm_atsam/platform.h)0
-rw-r--r--tmk_core/common/avr/platform_deps.h (renamed from tmk_core/common/avr/platform.h)0
-rw-r--r--tmk_core/common/chibios/platform_deps.h (renamed from tmk_core/common/chibios/platform.h)0
-rw-r--r--tmk_core/common/test/platform_deps.h18
5 files changed, 19 insertions, 1 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h
index 55f6dbb7da..d87d14041d 100644
--- a/quantum/quantum.h
+++ b/quantum/quantum.h
@@ -15,7 +15,7 @@
*/
#pragma once
-#include "platform.h"
+#include "platform_deps.h"
#include "wait.h"
#include "matrix.h"
#include "keymap.h"
diff --git a/tmk_core/common/arm_atsam/platform.h b/tmk_core/common/arm_atsam/platform_deps.h
index f296d1d535..f296d1d535 100644
--- a/tmk_core/common/arm_atsam/platform.h
+++ b/tmk_core/common/arm_atsam/platform_deps.h
diff --git a/tmk_core/common/avr/platform.h b/tmk_core/common/avr/platform_deps.h
index 45d9dcebfa..45d9dcebfa 100644
--- a/tmk_core/common/avr/platform.h
+++ b/tmk_core/common/avr/platform_deps.h
diff --git a/tmk_core/common/chibios/platform.h b/tmk_core/common/chibios/platform_deps.h
index 8243dcec53..8243dcec53 100644
--- a/tmk_core/common/chibios/platform.h
+++ b/tmk_core/common/chibios/platform_deps.h
diff --git a/tmk_core/common/test/platform_deps.h b/tmk_core/common/test/platform_deps.h
new file mode 100644
index 0000000000..f296d1d535
--- /dev/null
+++ b/tmk_core/common/test/platform_deps.h
@@ -0,0 +1,18 @@
+/* Copyright 2021 QMK
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#pragma once
+
+// here just to please the build