summaryrefslogtreecommitdiff
path: root/malloc/malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/malloc.h')
-rw-r--r--malloc/malloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/malloc.h b/malloc/malloc.h
index a93c77a853..eeb33a2949 100644
--- a/malloc/malloc.h
+++ b/malloc/malloc.h
@@ -60,7 +60,7 @@
/* GCC can always grok prototypes. For C++ programs we add throw()
to help it optimize the function calls. But this works only with
gcc 2.8.x and egcs. */
-# if defined __cplusplus && __GNUC_MINOR__ >= 8
+# if defined __cplusplus && (__GNUC__ >= 3 || __GNUC_MINOR__ >= 8)
# define __THROW throw ()
# else
# define __THROW