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 da47661 commit d0af70bCopy full SHA for d0af70b
src/host/pico_platform/include/pico/platform.h
@@ -27,8 +27,14 @@ extern "C" {
27
#define __scratch_x(group)
28
#define __scratch_y(group)
29
30
+#ifndef _MSC_VER
31
#define __packed __attribute__((packed))
32
#define __packed_aligned __packed __attribute((aligned))
33
+#else
34
+// MSVC requires #pragma pack which isn't compatible with a single attribute style define
35
+#define __packed
36
+#define __packed_aligned
37
+#endif
38
39
#define __time_critical_func(x) x
40
#define __after_data(group)
0 commit comments