changeset 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 e4352ad927f2
children cd9f293b42b7
files src/ChangeLog src/database.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon May 05 21:52:55 2003 +0000
+++ b/src/ChangeLog	Tue May 06 04:54:21 2003 +0000
@@ -1,4 +1,8 @@
-2003-04-05  Martin Buchholz  <martin@xemacs.org>
+2003-05-06  Martin Buchholz  <martin@xemacs.org>
+
+	* database.c: Berkeley DB wants __STDC__ to be defined.
+
+2003-05-04  Martin Buchholz  <martin@xemacs.org>
 
 	* EmacsFrameP.h (EmacsFramePart):
 	Kludge to allow compiling with Motif1, but linking with Motif2.
--- 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