summaryrefslogtreecommitdiff
path: root/tests/manual/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/test.cpp')
-rw-r--r--tests/manual/test.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/manual/test.cpp b/tests/manual/test.cpp
index e3f1870..05d967c 100644
--- a/tests/manual/test.cpp
+++ b/tests/manual/test.cpp
@@ -1,7 +1,11 @@
#include <cstdio>
#include <cstdlib>
-#define HAVE_ALIGNED_ALLOC defined(_ISOC11_SOURCE)
+#if defined(_ISOC11_SOURCE)
+# define HAVE_ALIGNED_ALLOC 1
+#else
+# define HAVE_ALIGNED_ALLOC 0
+#endif
struct Foo
{