_CrtDumpMemoryLeaks and its header are Microsoft-specific, e.g. Cygwin doesn't provid...
[freeglut] / progs / demos / Fractals_random / fractals_random.c
index 3ab62c0..176013f 100644 (file)
@@ -25,7 +25,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
-#ifdef WIN32
+#ifdef _MSC_VER
 /* DUMP MEMORY LEAKS */
 #include <crtdbg.h>
 #endif
@@ -378,7 +378,7 @@ main(int argc, char *argv[])
 
   free ( affine ) ;
 
-#ifdef WIN32
+#ifdef _MSC_VER
   /* DUMP MEMORY LEAK INFORMATION */
   _CrtDumpMemoryLeaks () ;
 #endif