summaryrefslogtreecommitdiff
path: root/include/malloc.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-18 20:33:38 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-18 20:33:38 +0000
commit5c41b5d413d0e94bbbb536429dd7de3a2b75301e (patch)
treebf71d1938f849d3885acc4378248b770e2ab3019 /include/malloc.h
parent0af31576f148f8ad3a4dd7fab2dea7132e9e6f5b (diff)
Enable __THROW,_NTH,REDIRECT_NTH
Diffstat (limited to 'include/malloc.h')
-rw-r--r--include/malloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h
index 6b8e1ad91..354f153d4 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -64,11 +64,13 @@
/* 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. */
+#ifndef __THROW
# if defined __cplusplus && (__GNUC__ >= 3 || __GNUC_MINOR__ >= 8)
# define __THROW throw ()
# else
# define __THROW
# endif
+#endif
# define __MALLOC_P(args) args __THROW
/* This macro will be used for functions which might take C++ callback
functions. */