Mercurial > libavcodec.hg
changeset 3461:7581658de3d1 libavcodec
CONFIG_WIN32 implies MinGW and Cygwin and possibly more, so use just
CONFIG_MINGW or __MINGW32__ instead.
author | diego |
---|---|
date | Tue, 11 Jul 2006 21:45:45 +0000 |
parents | 7a321f1b9eda |
children | a26e6e169607 |
files | utils.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Sun Jul 09 22:41:42 2006 +0000 +++ b/utils.c Tue Jul 11 21:45:45 2006 +0000 @@ -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 @@ * 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 @@ 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);