0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 19:28:52 +02:00

ircd/librb: Move "AFP" macro from ircd to rb.

This commit is contained in:
Jason Volk 2016-06-30 18:52:50 -07:00
parent b903059075
commit 007c6bf496
2 changed files with 9 additions and 9 deletions

View file

@ -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

View file

@ -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);