Mercurial > hg > xemacs-beta
diff src/database.c @ 1460:df0effd42264
[xemacs-hg @ 2003-05-06 04:54:18 by youngs]
2003-02-14 Martin Buchholz <martin@xemacs.org>
* database.c: Berkeley DB wants __STDC__ to be defined.
author | youngs |
---|---|
date | Tue, 06 May 2003 04:54:21 +0000 |
parents | 908cd1ff6104 |
children | 080d479edd32 |
line wrap: on
line diff
--- a/src/database.c Mon May 05 21:52:55 2003 +0000 +++ b/src/database.c Tue May 06 04:54:21 2003 +0000 @@ -57,6 +57,10 @@ #endif /* __FreeBSD__ */ #endif /* HAVE_INTTYPES_H */ #endif /* !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) */ +/* Berkeley DB wants __STDC__ to be defined; else if does `#define const' */ +#if ! defined (__STDC__) && ! defined(__cplusplus) +#define __STDC__ 0 +#endif #include DB_H_FILE /* Berkeley db's header file */ #ifndef DB_VERSION_MAJOR # define DB_VERSION_MAJOR 1