summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gmalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c
index 9bf84235ee..e05b758b76 100644
--- a/src/gmalloc.c
+++ b/src/gmalloc.c
@@ -36,7 +36,8 @@ Cambridge, MA 02139, USA.
#include <config.h>
#endif
-#if defined __cplusplus || (defined (__STDC__) && __STDC__) || defined STDC_HEADERS
+#if defined __cplusplus || (defined (__STDC__) && __STDC__) || \
+ defined STDC_HEADERS || defined PROTOTYPES
#undef PP
#define PP(args) args
#undef __ptr_t