Mercurial > emacs
comparison lib-src/etags.c @ 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 | aa069bbee4c8 |
comparison
equal
deleted
inserted
replaced
35740:9a7c0217c7bd | 35741:e0acf4b43873 |
---|---|
123 extern int errno; | 123 extern int errno; |
124 #endif | 124 #endif |
125 #include <assert.h> | 125 #include <assert.h> |
126 #include <sys/types.h> | 126 #include <sys/types.h> |
127 #include <sys/stat.h> | 127 #include <sys/stat.h> |
128 | |
129 /* Work around bug in Mingw assert.h. */ | |
130 #if defined (__MINGW32__) && defined(NDEBUG) && defined (assert) | |
131 #undef assert | |
132 #define assert(x) ((void) 0) | |
133 #endif | |
128 | 134 |
129 #if !defined (S_ISREG) && defined (S_IFREG) | 135 #if !defined (S_ISREG) && defined (S_IFREG) |
130 # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) | 136 # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) |
131 #endif | 137 #endif |
132 | 138 |