From: Sven Panne Date: Sat, 28 Feb 2009 18:02:31 +0000 (+0000) Subject: _CrtDumpMemoryLeaks and its header are Microsoft-specific, e.g. Cygwin doesn't provid... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;ds=sidebyside;h=2de8ecb067e6142a4f0d717c1e5bef62f3f53b81;p=freeglut _CrtDumpMemoryLeaks and its header are Microsoft-specific, e.g. Cygwin doesn't provide them. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@786 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/progs/demos/Fractals_random/fractals_random.c b/progs/demos/Fractals_random/fractals_random.c index 3ab62c0..176013f 100644 --- a/progs/demos/Fractals_random/fractals_random.c +++ b/progs/demos/Fractals_random/fractals_random.c @@ -25,7 +25,7 @@ #include #include #include -#ifdef WIN32 +#ifdef _MSC_VER /* DUMP MEMORY LEAKS */ #include #endif @@ -378,7 +378,7 @@ main(int argc, char *argv[]) free ( affine ) ; -#ifdef WIN32 +#ifdef _MSC_VER /* DUMP MEMORY LEAK INFORMATION */ _CrtDumpMemoryLeaks () ; #endif diff --git a/progs/demos/Lorenz/lorenz.c b/progs/demos/Lorenz/lorenz.c index 98361bc..366c7e4 100644 --- a/progs/demos/Lorenz/lorenz.c +++ b/progs/demos/Lorenz/lorenz.c @@ -33,7 +33,7 @@ #include #include #include -#ifdef WIN32 +#ifdef _MSC_VER /* DUMP MEMORY LEAKS */ #include #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 diff --git a/progs/demos/shapes/shapes.c b/progs/demos/shapes/shapes.c index 8836ccc..66eb8d4 100644 --- a/progs/demos/shapes/shapes.c +++ b/progs/demos/shapes/shapes.c @@ -41,7 +41,7 @@ #include #include -#ifdef WIN32 +#ifdef _MSC_VER /* DUMP MEMORY LEAKS */ #include #endif @@ -395,7 +395,7 @@ main(int argc, char *argv[]) glutMainLoop(); -#ifdef WIN32 +#ifdef _MSC_VER /* DUMP MEMORY LEAK INFORMATION */ _CrtDumpMemoryLeaks () ; #endif