_CrtDumpMemoryLeaks and its header are Microsoft-specific, e.g. Cygwin doesn't provide them.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@786 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2009-02-28 18:02:31 +00:00
parent 5ad587d208
commit 5cd0ad0211
3 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <math.h> #include <math.h>
#ifdef WIN32 #ifdef _MSC_VER
/* DUMP MEMORY LEAKS */ /* DUMP MEMORY LEAKS */
#include <crtdbg.h> #include <crtdbg.h>
#endif #endif
@ -378,7 +378,7 @@ main(int argc, char *argv[])
free ( affine ) ; free ( affine ) ;
#ifdef WIN32 #ifdef _MSC_VER
/* DUMP MEMORY LEAK INFORMATION */ /* DUMP MEMORY LEAK INFORMATION */
_CrtDumpMemoryLeaks () ; _CrtDumpMemoryLeaks () ;
#endif #endif

View File

@ -33,7 +33,7 @@
#include <string.h> #include <string.h>
#include <math.h> #include <math.h>
#include <GL/freeglut.h> #include <GL/freeglut.h>
#ifdef WIN32 #ifdef _MSC_VER
/* DUMP MEMORY LEAKS */ /* DUMP MEMORY LEAKS */
#include <crtdbg.h> #include <crtdbg.h>
#endif #endif
@ -365,7 +365,7 @@ int main ( int argc, char *argv[] )
/* Enter the GLUT main loop */ /* Enter the GLUT main loop */
glutMainLoop () ; glutMainLoop () ;
#ifdef WIN32 #ifdef _MSC_VER
/* DUMP MEMORY LEAK INFORMATION */ /* DUMP MEMORY LEAK INFORMATION */
_CrtDumpMemoryLeaks () ; _CrtDumpMemoryLeaks () ;
#endif #endif

View File

@ -41,7 +41,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef WIN32 #ifdef _MSC_VER
/* DUMP MEMORY LEAKS */ /* DUMP MEMORY LEAKS */
#include <crtdbg.h> #include <crtdbg.h>
#endif #endif
@ -395,7 +395,7 @@ main(int argc, char *argv[])
glutMainLoop(); glutMainLoop();
#ifdef WIN32 #ifdef _MSC_VER
/* DUMP MEMORY LEAK INFORMATION */ /* DUMP MEMORY LEAK INFORMATION */
_CrtDumpMemoryLeaks () ; _CrtDumpMemoryLeaks () ;
#endif #endif