We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 912c2a6 commit a192467Copy full SHA for a192467
core/shared/platform/zephyr/platform_internal.h
@@ -7,8 +7,24 @@
7
#ifndef _PLATFORM_INTERNAL_H
8
#define _PLATFORM_INTERNAL_H
9
10
+/*
11
+ * Modern Zephyr uses zephyr/ namespace.
12
+ *
13
+ * Note: Cannot use KERNEL_VERSION_NUMBER here as it's defined in version.h
14
+ * which we're trying to include. Must use feature detection instead.
15
+ */
16
+#ifdef __has_include
17
+#if __has_include(<zephyr/autoconf.h>)
18
+#include <zephyr/autoconf.h>
19
+#include <zephyr/version.h>
20
+#else
21
#include <autoconf.h>
22
#include <version.h>
23
+#endif
24
25
+#include <autoconf.h>
26
+#include <version.h>
27
28
29
#if KERNEL_VERSION_NUMBER < 0x030200 /* version 3.2.0 */
30
#include <zephyr.h>
0 commit comments