added printf format attributes for gcc

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21592 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2007-07-11 18:55:27 +00:00
parent b39c8d3711
commit 5d5a6848b5
+7 -2
View File
@@ -23,8 +23,13 @@ extern "C" {
_IMPEXP_ROOT bool _debugFlag(void);
_IMPEXP_ROOT bool _setDebugFlag(bool);
_IMPEXP_ROOT int _debugPrintf(const char *, ...);
_IMPEXP_ROOT int _sPrintf(const char *, ...);
#if __GNUC__
int _debugPrintf(const char *, ...) __attribute__ ((format (__printf__, 1, 2)));
int _sPrintf(const char *, ...) __attribute__ ((format (__printf__, 1, 2)));
#else
int _debugPrintf(const char *, ...);
int _sPrintf(const char *, ...);
#endif
_IMPEXP_ROOT int _xdebugPrintf(const char *, ...);
_IMPEXP_ROOT int _debuggerAssert(const char *, int, char *);
#ifdef __cplusplus