diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-01 00:26:56 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-01 00:26:56 +0000 |
commit | e0308acf280a75ef58fd6b8b20bf6e6e2fdc00df (patch) | |
tree | 1617d79c9ecefaeeabd47da991c64dc24ed43527 /libpthread/linuxthreads/debug.h | |
parent | 2f1c4fcdbb83534d7facb7d28150b8d87a16c8ab (diff) |
update the debug macros so they build with newer gcc versions
Diffstat (limited to 'libpthread/linuxthreads/debug.h')
-rw-r--r-- | libpthread/linuxthreads/debug.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libpthread/linuxthreads/debug.h b/libpthread/linuxthreads/debug.h index 79acb23c0..a2ac5113a 100644 --- a/libpthread/linuxthreads/debug.h +++ b/libpthread/linuxthreads/debug.h @@ -23,13 +23,19 @@ #ifndef _PT_DEBUG_H #define _PT_DEBUG_H +#include <features.h> + +#ifdef __DODEBUG_PT__ +# define DEBUG_PT +#endif + /* include asserts for now */ #define DO_ASSERT /* define the PDEBUG macro here */ #undef PDEBUG #ifdef DEBUG_PT -# define PDEBUG(fmt, args...) __pthread_message(__FUNCTION__": " fmt, ## args) +# define PDEBUG(fmt, args...) __pthread_message("%s: " fmt, __FUNCTION__, ## args) #else # define PDEBUG(fmt, args...) /* debug switched off */ #endif |