diff options
| author | Mark Young <marky@lunarg.com> | 2016-01-26 15:09:10 -0700 |
|---|---|---|
| committer | Mark Young <marky@lunarg.com> | 2016-01-26 15:10:18 -0700 |
| commit | e02e913a88ccbe865dd75b239f8964a27be15e2c (patch) | |
| tree | ad4a9272ebf24893c3643639e54ea7f75299f082 | |
| parent | 733be12283debd1699b712e64139f490043a8f38 (diff) | |
| download | usermoji-e02e913a88ccbe865dd75b239f8964a27be15e2c.tar.xz | |
loader: Moved missing #define needed by aligned_alloc.
The define needs to be before the includes.
| -rw-r--r-- | demos/tri.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/tri.c b/demos/tri.c index 4699f263..ec8e6e07 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -33,16 +33,16 @@ * 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 |
