_CrtDumpMemoryLeaks and its header are Microsoft-specific, e.g. Cygwin doesn't provid...
[freeglut] / progs / demos / Lorenz / lorenz.c
index 98361bc..366c7e4 100644 (file)
@@ -33,7 +33,7 @@
 #include <string.h>
 #include <math.h>
 #include <GL/freeglut.h>
-#ifdef WIN32
+#ifdef _MSC_VER
 /* DUMP MEMORY LEAKS */
 #include <crtdbg.h>
 #endif
@@ -365,7 +365,7 @@ int main ( int argc, char *argv[] )
   /* Enter the GLUT main loop */
   glutMainLoop () ;
 
-#ifdef WIN32
+#ifdef _MSC_VER
   /* DUMP MEMORY LEAK INFORMATION */
   _CrtDumpMemoryLeaks () ;
 #endif