use standard functions for checking
[rrdtool.git] / src / rrd_tool.c
index 0748d92..0772b88 100644 (file)
@@ -4,7 +4,7 @@
  * rrd_tool.c  Startup wrapper
  *****************************************************************************/
 
-#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) && !defined(HAVE_CONFIG_H)
+#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) && !defined(HAVE_CONFIG_H)
 #include "../win32/config.h"
 #include <stdlib.h>
 #include <sys/stat.h>
@@ -416,7 +416,7 @@ int main(
        according to localeconv(3) */       
     setlocale(LC_ALL, "");
 
-#ifdef WIN32 && !defined(__CYGWIN__)
+#if defined(WIN32) && !defined(__CYGWIN__)
     setmode(fileno(stdout), O_BINARY);
     setmode(fileno(stdin), O_BINARY);
 #endif