aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/tri.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/tri.c b/demos/tri.c
index 45020889..4699f263 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -39,6 +39,10 @@
#include <stdbool.h>
#include <assert.h>
+#ifndef _MSC_VER
+#define _ISOC11_SOURCE /* for aligned_alloc() */
+#endif
+
#ifdef _WIN32
#pragma comment(linker, "/subsystem:windows")
#define APP_NAME_STR_LEN 80