loader: Moved missing #define needed by aligned_alloc.
authorMark Young <marky@lunarg.com>
Tue, 26 Jan 2016 22:09:10 +0000 (15:09 -0700)
committerMark Young <marky@lunarg.com>
Tue, 26 Jan 2016 22:10:18 +0000 (15:10 -0700)
The define needs to be before the includes.

demos/tri.c

index 4699f26..ec8e6e0 100644 (file)
  * should.  It also does no error checking.
  */
 
+#ifndef _MSC_VER
+#define _ISOC11_SOURCE /* for aligned_alloc() */
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #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