Mercurial > emacs
changeset 35741:e0acf4b43873
(assert) [__MINGW32__]: Redefine assert to work around a
bug in the Mingw32 assert.h header file.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Tue, 30 Jan 2001 18:11:42 +0000 |
parents | 9a7c0217c7bd |
children | 95fb36dae3c8 |
files | lib-src/etags.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/etags.c Tue Jan 30 17:22:09 2001 +0000 +++ b/lib-src/etags.c Tue Jan 30 18:11:42 2001 +0000 @@ -126,6 +126,12 @@ #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