diff options
author | Andrew Innes <andrewi@gnu.org> | 2001-01-30 18:11:42 +0000 |
---|---|---|
committer | Andrew Innes <andrewi@gnu.org> | 2001-01-30 18:11:42 +0000 |
commit | 83e8a49d9bbaf1071a3669ce352e5141d94709fe (patch) | |
tree | 7e1c6e7bdbd510fb38eac427281c4201168d5f40 | |
parent | b7ea581cb1611c16f265715fa804d8e1597cd797 (diff) | |
download | emacs-83e8a49d9bbaf1071a3669ce352e5141d94709fe.tar.gz |
(assert) [__MINGW32__]: Redefine assert to work around a
bug in the Mingw32 assert.h header file.
-rw-r--r-- | lib-src/etags.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <sys/types.h> #include <sys/stat.h> +/* 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 |