_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:
parent
5ad587d208
commit
5cd0ad0211
@ -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
|
||||
|
@ -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
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _MSC_VER
|
||||
/* DUMP MEMORY LEAKS */
|
||||
#include <crtdbg.h>
|
||||
#endif
|
||||
@ -395,7 +395,7 @@ main(int argc, char *argv[])
|
||||
|
||||
glutMainLoop();
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _MSC_VER
|
||||
/* DUMP MEMORY LEAK INFORMATION */
|
||||
_CrtDumpMemoryLeaks () ;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user