changeset 12027:210e474436d3

Cygwin provides setenv. Fixes compilation on Cygwin.
author diego
date Mon, 15 Mar 2004 05:07:46 +0000
parents 252b9e2f7417
children 91eb4f10a9ad
files libao2/ao_sdl.c libvo/vo_sdl.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_sdl.c	Mon Mar 15 02:47:28 2004 +0000
+++ b/libao2/ao_sdl.c	Mon Mar 15 05:07:46 2004 +0000
@@ -99,7 +99,7 @@
 
 // end ring buffer stuff
 
-#if defined(WIN32) || defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__))
+#if defined(__MINGW32__) || defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__))
 /* setenv is missing on win32, solaris, IRIX and HPUX */
 static void setenv(const char *name, const char *val, int _xx)
 {
--- a/libvo/vo_sdl.c	Mon Mar 15 02:47:28 2004 +0000
+++ b/libvo/vo_sdl.c	Mon Mar 15 05:07:46 2004 +0000
@@ -139,7 +139,7 @@
 #include <SDL.h>
 //#include <SDL/SDL_syswm.h>
 
-#if defined(WIN32) || defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__))
+#if defined(__MINGW32__) || defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__))
 /* setenv is missing on win32, solaris, IRIX and HPUX */
 static void setenv(const char *name, const char *val, int _xx)
 {