Commit 7ad3ce42 authored by Niels Möller's avatar Niels Möller
Browse files

Moved function attribute macros.

Rev: src/lsh_types.h:1.3
parent cfe2f930
...@@ -20,6 +20,14 @@ ...@@ -20,6 +20,14 @@
#define UINT8 unsigned char #define UINT8 unsigned char
#ifdef __GNUC__
#define NORETURN __attribute__ ((noreturn))
#define PRINTF_STYLE(f, a) __attribute__ ((format(printf, f, a)))
#else
#define NORETURN
#define PRINTF_STYLE(f, a)
#endif
/* Generic packet */ /* Generic packet */
struct lsh_string struct lsh_string
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment