X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=con.c;h=3fca6ef76fbdd8a576e85beaec822e700581e704;hp=7406caed3fc67ab25a01bdc476645cb9b395d253;hb=2e57a952a702a2b591cabc9fb857d4cf0811e3a7;hpb=42fc62046615ada8580ed2ca497cc9a4c9293a1a;ds=sidebyside diff --git a/con.c b/con.c index 7406cae..3fca6ef 100644 --- a/con.c +++ b/con.c @@ -27,7 +27,14 @@ * + some other things likewise. */ #ifndef _WIN32 -#include +# include +#else +# include + /* + * Windows and it's posix underscore bullshit. We simply fix this + * with yay, another macro :P + */ +# define isatty _isatty #endif #define GMQCC_IS_STDOUT(X) ((FILE*)((void*)X) == stdout) @@ -59,12 +66,6 @@ typedef struct { #define STDERR_FILENO 2 #define STDOUT_FILENO 1 -/* - * Windows and it's posix underscore bullshit. We simply fix this - * with yay, another macro :P - */ -#define isatty _isatty - enum { RESET = 0, BOLD = 1,