Mercurial > hg > xemacs-beta
diff src/database.c @ 5825:5d5aeb79edb4
Fix build with g++.
This patch fixes various issues that cause build failures with g++ 4.8.3.
See <CAHCOHQ=6yKcjQELvG8FOHXcWVez+HufUWb4FdcJKpUNhm+8B=g@mail.gmail.com> in
xemacs-patches.
author | Jerry James <james@xemacs.org> |
---|---|
date | Thu, 06 Nov 2014 09:34:06 -0700 |
parents | 56144c8593a8 |
children |
line wrap: on
line diff
--- a/src/database.c Sat Oct 25 15:59:31 2014 +0200 +++ b/src/database.c Thu Nov 06 09:34:06 2014 -0700 @@ -83,6 +83,7 @@ #endif /* HAVE_BERKELEY_DB */ #ifdef HAVE_DBM +BEGIN_C_DECLS # ifdef TRUST_NDBM_H_PROTOTYPES # include NDBM_H_FILE # else /* not TRUST_NDBM_H_PROTOTYPES */ @@ -91,10 +92,6 @@ using C++, since they are of the form `datum dbm_firstkey()', without any args given. */ -#if defined(__cplusplus) || defined(c_plusplus) -extern "C" { -#endif - /* Parameters to dbm_store for simple insertion or replacement. */ #define DBM_INSERT 0 #define DBM_REPLACE 1 @@ -119,11 +116,9 @@ DBM *dbm_open(const char *, int, mode_t); int dbm_store(DBM *, datum, datum, int); -#if defined(__cplusplus) || defined(c_plusplus) -} -#endif +# endif /* (not) TRUST_NDBM_H_PROTOTYPES */ +END_C_DECLS -# endif /* (not) TRUST_NDBM_H_PROTOTYPES */ Lisp_Object Qdbm; #endif /* HAVE_DBM */