aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-01-26 13:41:18 -0700
committerMark Young <marky@lunarg.com>2016-01-26 13:46:59 -0700
commit33b3c6ea565c9121c1933ff8fe499aee601051fb (patch)
tree3628a60f14237ce417a4fdd27216ac9943966a42
parent6dcfe83d35132a8956c009e4d7d544408f8d31e6 (diff)
downloadusermoji-33b3c6ea565c9121c1933ff8fe499aee601051fb.tar.xz
loader: Fixed missing #define needed by aligned_alloc.
This fixes the missing #define so Linux should build without warning.
-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