summaryrefslogtreecommitdiffstats
path: root/src/util/db2/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/db2/include')
-rw-r--r--src/util/db2/include/db.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/db2/include/db.h b/src/util/db2/include/db.h
index db19429e35..53c587b756 100644
--- a/src/util/db2/include/db.h
+++ b/src/util/db2/include/db.h
@@ -90,11 +90,13 @@ typedef enum { DB_BTREE, DB_HASH, DB_RECNO } DBTYPE;
/* deal with turning prototypes on and off */
+#ifndef __P
#if defined(__STDC__) || defined(__cplusplus)
#define __P(protos) protos /* full-blown ANSI C */
#else /* !(__STDC__ || __cplusplus) */
#define __P(protos) () /* traditional C preprocessor */
#endif
+#endif /* no __P from system */
/* Access method description structure. */
typedef struct __db {