X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=test.c;h=1111c370ed87394ea7fcb9cae729486662907aac;hb=f58b4a6cd98d84589efc8b8ebb6bcbef2aa2b12b;hp=495b547183f3f2530c89d325ae30ba305c2e3c4d;hpb=5bc815c63f4b0ba0fd500f359a7b2e379c6b7fbb;p=xonotic%2Fgmqcc.git diff --git a/test.c b/test.c index 495b547..1111c37 100644 --- a/test.c +++ b/test.c @@ -169,12 +169,12 @@ int task_pclose(FILE **handles) { return status; } #else -# define _WIN32_LEAN_AND_MEAN -# define popen _popen -# define pclose _pclose -# include +# define _WIN32_LEAN_AND_MEAN +# define popen _popen +# define pclose _pclose +# include # include -# include +# include /* * Bidirectional piping implementation for windows using CreatePipe and DuplicateHandle + * other hacks. @@ -199,10 +199,10 @@ int task_pclose(FILE **handles) { return; } -# ifdef __MINGW32__ +# ifdef __MINGW32__ /* mingw32 has dirent.h */ -# include -# elif defined (_MSC_VER) +# include +# elif defined (_MSC_VER) /* * visual studio lacks dirent.h it's a posix thing * so we emulate it with the WinAPI. @@ -280,9 +280,9 @@ int task_pclose(FILE **handles) { * Visual studio also lacks S_ISDIR for sys/stat.h, so we emulate this as well * which is not hard at all. */ -# undef S_ISDIR /* undef just incase */ -# define S_ISDIR(X) ((X)&_S_IFDIR) -# endif +# undef S_ISDIR /* undef just incase */ +# define S_ISDIR(X) ((X)&_S_IFDIR) +# endif #endif #define TASK_COMPILE 0