diff --git a/mozilla/dbm/include/cdefs.h b/mozilla/dbm/include/cdefs.h index 45bfbd58f76..43ab6ba90fa 100644 --- a/mozilla/dbm/include/cdefs.h +++ b/mozilla/dbm/include/cdefs.h @@ -77,13 +77,6 @@ #ifndef _CDEFS_H_ #define _CDEFS_H_ -#ifdef __BEGIN_DECLS -#undef __BEGIN_DECLS -#endif -#ifdef __END_DECLS -#undef __END_DECLS -#endif - #if defined(__cplusplus) #define __BEGIN_DECLS extern "C" { #define __END_DECLS } @@ -99,18 +92,12 @@ * in between its arguments. __CONCAT can also concatenate double-quoted * strings produced by the __STRING macro, but this only works with ANSI C. */ -#undef __P -#undef __CONCAT -#undef __STRING - #if defined(__STDC__) || defined(__cplusplus) || defined(_WINDOWS) || defined(XP_OS2) #define __P(protos) protos /* full-blown ANSI C */ #define __CONCAT(x,y) x ## y #define __STRING(x) #x -#ifndef __const #define __const const /* define reserved names to standard */ -#endif /* __const */ #define __signed signed #define __volatile volatile #ifndef _WINDOWS @@ -172,11 +159,4 @@ #define __pure #endif -#ifdef AIXV3 -/* Wont compile without const. Need a cleaner way to handle this. */ -#ifdef const -#undef const -#endif -#endif - #endif /* !_CDEFS_H_ */ diff --git a/mozilla/dbm/include/mcom_db.h b/mozilla/dbm/include/mcom_db.h index 191393d6297..e3dc08bd11d 100644 --- a/mozilla/dbm/include/mcom_db.h +++ b/mozilla/dbm/include/mcom_db.h @@ -77,7 +77,7 @@ #ifndef HAVE_SYS_CDEFS_H #include "cdefs.h" #else -#include +#include #endif #include "prtypes.h" @@ -231,10 +231,6 @@ XP_END_PROTOS #include #endif -#ifndef HAVE_SYS_CDEFS_H -#include "cdefs.h" -#endif - #ifndef _WINDOWS /* included above to prevent spurious warnings chouck 12-Sep-95 */ #include #endif diff --git a/mozilla/dbm/include/nsres.h b/mozilla/dbm/include/nsres.h index 17f16647a77..f3f4e2d1a9e 100644 --- a/mozilla/dbm/include/nsres.h +++ b/mozilla/dbm/include/nsres.h @@ -1,6 +1,5 @@ #ifndef NSRES_H #define NSRES_H -#include "cdefs.h" #include "mcom_db.h" __BEGIN_DECLS diff --git a/mozilla/dbm/src/snprintf.c b/mozilla/dbm/src/snprintf.c index 7a6b2005c53..b5036f81840 100644 --- a/mozilla/dbm/src/snprintf.c +++ b/mozilla/dbm/src/snprintf.c @@ -5,9 +5,9 @@ #include #include -#if defined(_WINDOWS) || defined(SOLARIS) || defined(AIXV3) || defined(AIX) || defined(OSF1) || defined(NEC) || !defined(HAVE_SYS_CDEFS_H) +#ifndef HAVE_SYS_CDEFS_H #include "cdefs.h" -#elif !defined(HPUX) && !defined(UNIXWARE) && !defined(SNI) +#else #include #endif