We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0474c59 commit 66878eaCopy full SHA for 66878ea
1 file changed
Inc/DirectXMath.h
@@ -2006,7 +2006,9 @@ namespace DirectX
2006
// separate math routine it would be reloaded.
2007
2008
#ifndef XMGLOBALCONST
2009
-#if defined(__GNUC__) && !defined(__MINGW32__)
+#if __cplusplus >= 201703L
2010
+#define XMGLOBALCONST inline constexpr
2011
+#elif defined(__GNUC__) && !defined(__MINGW32__)
2012
#define XMGLOBALCONST extern const __attribute__((weak))
2013
#else
2014
#define XMGLOBALCONST extern const __declspec(selectany)
0 commit comments