diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-18 20:33:38 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-18 20:33:38 +0000 |
commit | 5c41b5d413d0e94bbbb536429dd7de3a2b75301e (patch) | |
tree | bf71d1938f849d3885acc4378248b770e2ab3019 /include/malloc.h | |
parent | 0af31576f148f8ad3a4dd7fab2dea7132e9e6f5b (diff) |
Enable __THROW,_NTH,REDIRECT_NTH
Diffstat (limited to 'include/malloc.h')
-rw-r--r-- | include/malloc.h | 2 |
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. */ |