Mercurial > mplayer.hg
comparison libao2/ao_sdl.c @ 12027:210e474436d3
Cygwin provides setenv. Fixes compilation on Cygwin.
author | diego |
---|---|
date | Mon, 15 Mar 2004 05:07:46 +0000 |
parents | 6ede5366bc47 |
children | f54d02f6ddbf |
comparison
equal
deleted
inserted
replaced
12026:252b9e2f7417 | 12027:210e474436d3 |
---|---|
97 return len2; | 97 return len2; |
98 } | 98 } |
99 | 99 |
100 // end ring buffer stuff | 100 // end ring buffer stuff |
101 | 101 |
102 #if defined(WIN32) || defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__)) | 102 #if defined(__MINGW32__) || defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__)) |
103 /* setenv is missing on win32, solaris, IRIX and HPUX */ | 103 /* setenv is missing on win32, solaris, IRIX and HPUX */ |
104 static void setenv(const char *name, const char *val, int _xx) | 104 static void setenv(const char *name, const char *val, int _xx) |
105 { | 105 { |
106 int len = strlen(name) + strlen(val) + 2; | 106 int len = strlen(name) + strlen(val) + 2; |
107 char *env = malloc(len); | 107 char *env = malloc(len); |