diff --git a/src/frontend/terminal.c b/src/frontend/terminal.c index 846d4172f..8f5a95225 100644 --- a/src/frontend/terminal.c +++ b/src/frontend/terminal.c @@ -26,7 +26,7 @@ $Id$ #ifdef HAVE_LIBIBERTY_H /* asprintf */ #include #undef AND /* obsolete macro in ansidecl.h */ -#else /* we have asprintf, but not libiberty.h */ +#elif defined(__MINGW32__)/* we have asprintf, but not libiberty.h */ #include extern int asprintf(char **out, const char *fmt, ...); extern int vasprintf(char **out, const char *fmt, va_list ap); diff --git a/src/main.c b/src/main.c index f8889e00d..9b2d3a700 100644 --- a/src/main.c +++ b/src/main.c @@ -17,7 +17,7 @@ #ifdef HAVE_LIBIBERTY_H /* asprintf */ #include #undef AND /* obsolete macro in ansidecl.h */ -#else /* we have asprintf, but not libiberty.h */ +#elif defined(__MINGW32__)/* we have asprintf, but not libiberty.h */ #include extern int asprintf(char **out, const char *fmt, ...); extern int vasprintf(char **out, const char *fmt, va_list ap); diff --git a/src/misc/ivars.c b/src/misc/ivars.c index 39e7000eb..cb2745432 100644 --- a/src/misc/ivars.c +++ b/src/misc/ivars.c @@ -9,7 +9,7 @@ Copyright 1991 Regents of the University of California. All rights reserved. #ifdef HAVE_LIBIBERTY_H /* asprintf */ #include #undef AND /* obsolete macro in ansidecl.h */ -#else /* we have asprintf, but not libiberty.h */ +#elif defined(__MINGW32__)/* we have asprintf, but not libiberty.h */ #include extern int asprintf(char **out, const char *fmt, ...); extern int vasprintf(char **out, const char *fmt, va_list ap); diff --git a/src/spicelib/parser/ifnewuid.c b/src/spicelib/parser/ifnewuid.c index a04c0370f..023d27b3d 100644 --- a/src/spicelib/parser/ifnewuid.c +++ b/src/spicelib/parser/ifnewuid.c @@ -9,7 +9,7 @@ Author: 1988 Thomas L. Quarles #ifdef HAVE_LIBIBERTY_H /* asprintf */ #include #undef AND /* obsolete macro in ansidecl.h */ -#else /* we have asprintf, but not libiberty.h */ +#elif defined(__MINGW32__)/* we have asprintf, but not libiberty.h */ #include extern int asprintf(char **out, const char *fmt, ...); extern int vasprintf(char **out, const char *fmt, va_list ap); diff --git a/src/spicelib/parser/inperror.c b/src/spicelib/parser/inperror.c index 82cc2e8b1..8c3401eaf 100644 --- a/src/spicelib/parser/inperror.c +++ b/src/spicelib/parser/inperror.c @@ -13,7 +13,7 @@ Author: 1985 Thomas L. Quarles #ifdef HAVE_LIBIBERTY_H /* asprintf */ #include #undef AND /* obsolete macro in ansidecl.h */ -#else /* we have asprintf, but not libiberty.h */ +#elif defined(__MINGW32__)/* we have asprintf, but not libiberty.h */ #include extern int asprintf(char **out, const char *fmt, ...); extern int vasprintf(char **out, const char *fmt, va_list ap);