summaryrefslogtreecommitdiffstats
path: root/include/malloc.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-19 21:04:15 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-19 21:04:15 +0000
commitaebf0c050a8598c864dda377b4fadb79225d34ca (patch)
treef67c89bb2536f64c390654810b1aa1b95ae0a11e /include/malloc.h
parent6f728cdcf296054020c8606cb8cb841d84a64245 (diff)
downloaduClibc-alpine-aebf0c050a8598c864dda377b4fadb79225d34ca.tar.bz2
uClibc-alpine-aebf0c050a8598c864dda377b4fadb79225d34ca.tar.xz
Sync up with trunk.
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. */