From: Andrew Innes Date: Tue, 30 Jan 2001 18:11:56 +0000 (+0000) Subject: (assert) [__MINGW32__]: Redefine assert to work around a X-Git-Tag: emacs-pretest-21.0.97~2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=914d725857ac6cb0c14a55213efe9de07185c53b;p=emacs.git (assert) [__MINGW32__]: Redefine assert to work around a bug in the Mingw32 assert.h header file. --- diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 2b5ccb265b0..d7685bfe124 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,8 @@ +2001-01-30 Andrew Innes + + * etags.c (assert) [__MINGW32__]: Redefine assert to work around a + bug in the Mingw32 assert.h header file. + 2001-01-30 Francesco Potorti` * etags.c: [WIN32-NATIVE]: #undef MSDOS, #undef WINDOWSNT and diff --git a/lib-src/etags.c b/lib-src/etags.c index 1e1478886b6..e17aefbc557 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -126,6 +126,12 @@ char pot_etags_version[] = "@(#) pot revision number is 14.13"; #include #include +/* Work around bug in Mingw assert.h. */ +#if defined (__MINGW32__) && defined(NDEBUG) && defined (assert) +#undef assert +#define assert(x) ((void) 0) +#endif + #if !defined (S_ISREG) && defined (S_IFREG) # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) #endif