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 79d3fcd commit 111b292Copy full SHA for 111b292
src/mpack/mpack-platform.h
@@ -1025,14 +1025,12 @@ void mpack_assert_fail(const char* message);
1025
1026
// If we don't have support for float or double, we poison the identifiers to
1027
// make sure we don't define anything related to them.
1028
-#if MPACK_INTERNAL
1029
- #ifdef __GNUC__
1030
- #if !MPACK_FLOAT
1031
- #pragma GCC poison float
1032
- #endif
1033
- #if !MPACK_DOUBLE
1034
- #pragma GCC poison double
1035
+#if MPACK_INTERNAL && defined(MPACK_UNIT_TESTS) && defined(__GNUC__)
+ #if !MPACK_FLOAT
+ #pragma GCC poison float
+ #endif
+ #if !MPACK_DOUBLE
+ #pragma GCC poison double
1036
#endif
1037
1038
0 commit comments