1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r2243: Include definition for PRINTF_ATTRIBUTE in Python tdb wrapper.

(This used to be commit 301bb069c3)
This commit is contained in:
Tim Potter 2004-09-07 23:12:29 +00:00 committed by Gerald (Jerry) Carter
parent 3ddde3b74c
commit 915f2e539d

View File

@ -45,6 +45,16 @@ typedef sig_atomic_t SIG_ATOMIC_T;
typedef int SIG_ATOMIC_T;
#endif
#if (__GNUC__ >= 3)
/** Use gcc attribute to check printf fns. a1 is the 1-based index of
* the parameter containing the format, and a2 the index of the first
* argument. Note that some gcc 2.x versions don't handle this
* properly **/
#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
#else
#define PRINTF_ATTRIBUTE(a1, a2)
#endif
/* Include tdb headers */
#include "lib/tdb/include/tdb.h"