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 28551d5 commit 9d4d011Copy full SHA for 9d4d011
Include/pymacro.h
@@ -41,9 +41,12 @@
41
#ifdef Py_GIL_DISABLED
42
# ifndef _Py_ALIGN_AS
43
# ifdef __cplusplus
44
-# if (__cplusplus < 201103L) \
45
- && (defined(__GNUC__) || defined(__clang__))
+# if __cplusplus >= 201103L
+# define _Py_ALIGN_AS(V) alignas(V)
46
+# elif defined(__GNUC__) || defined(__clang__)
47
# define _Py_ALIGN_AS(V) __attribute__((aligned(V)))
48
+# elif defined(_MSC_VER)
49
+# define _Py_ALIGN_AS(V) __declspec(align(V))
50
# else
51
# define _Py_ALIGN_AS(V) alignas(V)
52
# endif
0 commit comments