diff options
author | Diego Biurrun <diego@biurrun.de> | 2006-07-11 21:45:45 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-07-11 21:45:45 +0000 |
commit | 2f30a81d192b90fd3b12f2ce40227ed74a331b6d (patch) | |
tree | dbdaf9dd7f5862237d81bd3dec64c1572be744c0 /libavcodec | |
parent | 3dc7174e9dbe0d12d84b6159e6733d3865ed53f5 (diff) | |
download | ffmpeg-2f30a81d192b90fd3b12f2ce40227ed74a331b6d.tar.gz |
CONFIG_WIN32 implies MinGW and Cygwin and possibly more, so use just
CONFIG_MINGW or __MINGW32__ instead.
Originally committed as revision 5718 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 9784e14ca3..1b05761a5e 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -33,7 +33,7 @@ #include <stdarg.h> #include <limits.h> #include <float.h> -#ifdef CONFIG_WIN32 +#ifdef __MINGW32__ #include <fcntl.h> #endif @@ -1417,7 +1417,7 @@ unsigned int av_xiphlacing(unsigned char *s, unsigned int v) * and opened file name in **filename. */ int av_tempfile(char *prefix, char **filename) { int fd=-1; -#ifdef CONFIG_WIN32 +#ifdef __MINGW32__ *filename = tempnam(".", prefix); #else size_t len = strlen(prefix) + 12; /* room for "/tmp/" and "XXXXXX\0" */ @@ -1428,7 +1428,7 @@ int av_tempfile(char *prefix, char **filename) { av_log(NULL, AV_LOG_ERROR, "ff_tempfile: Cannot allocate file name\n"); return -1; } -#ifdef CONFIG_WIN32 +#ifdef __MINGW32__ fd = open(*filename, _O_RDWR | _O_BINARY | _O_CREAT, 0444); #else snprintf(*filename, len, "/tmp/%sXXXXXX", prefix); |