X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/ff05a229397c75142725f45cad191ce4a00625ce..4f5e39ec:/config.h.in diff --git a/config.h.in b/config.h.in index 508a8a8..8492df2 100644 --- a/config.h.in +++ b/config.h.in @@ -160,4 +160,12 @@ typedef unsigned char uint8_t; #include "snprintf.h" #endif +#ifdef __GNUC__ +#define NORETURN(_x) void _x __attribute__ ((noreturn)) +#define FORMAT(_a,_b,_c) __attribute__ ((format (_a,_b,_c))) +#else +#define NORETURN(_x) _x +#define FORMAT(_a,_b,_c) +#endif + #endif /* _CONFIG_H */