mirror of
https://github.com/matrix-construct/construct
synced 2025-03-13 21:10:32 +01:00
ircd/librb: Move "AFP" macro from ircd to rb.
This commit is contained in:
parent
b903059075
commit
007c6bf496
2 changed files with 9 additions and 9 deletions
|
@ -37,15 +37,6 @@
|
|||
|
||||
#include "defaults.h"
|
||||
|
||||
/* For those unfamiliar with GNU format attributes, a is the 1 based
|
||||
* argument number of the format string, and b is the 1 based argument
|
||||
* number of the variadic ... */
|
||||
#ifdef __GNUC__
|
||||
#define AFP(a,b) __attribute__((format (printf, a, b)))
|
||||
#else
|
||||
#define AFP(a,b)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* This ensures that __attribute__((deprecated)) is not used in for example
|
||||
* sun CC, since it's a GNU-specific extension. -nenolod
|
||||
|
|
|
@ -228,6 +228,15 @@ while(0)
|
|||
#define UINT32_MAX (4294967295U)
|
||||
#endif
|
||||
|
||||
/* For those unfamiliar with GNU format attributes, a is the 1 based
|
||||
* argument number of the format string, and b is the 1 based argument
|
||||
* number of the variadic ... */
|
||||
#ifdef __GNUC__
|
||||
#define AFP(a,b) __attribute__((format (printf, a, b)))
|
||||
#else
|
||||
#define AFP(a,b)
|
||||
#endif
|
||||
|
||||
|
||||
typedef void log_cb(const char *buffer);
|
||||
typedef void restart_cb(const char *buffer);
|
||||
|
|
Loading…
Add table
Reference in a new issue