From e02e913a88ccbe865dd75b239f8964a27be15e2c Mon Sep 17 00:00:00 2001 From: Mark Young Date: Tue, 26 Jan 2016 15:09:10 -0700 Subject: loader: Moved missing #define needed by aligned_alloc. The define needs to be before the includes. --- demos/tri.c | 8 ++++---- 1 file 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 #include #include #include #include -#ifndef _MSC_VER -#define _ISOC11_SOURCE /* for aligned_alloc() */ -#endif - #ifdef _WIN32 #pragma comment(linker, "/subsystem:windows") #define APP_NAME_STR_LEN 80 -- cgit v1.2.3