diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-14 15:33:47 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-14 15:33:47 +0100 |
commit | 2f81c1d7fbe7932da055581aa815edc9f6ff8191 (patch) | |
tree | 9c0bdbd261fb6625829be61f3bfd2026d48e43fe | |
parent | Merge branch 'master' into warnings (diff) | |
download | cuberite-2f81c1d7fbe7932da055581aa815edc9f6ff8191.tar cuberite-2f81c1d7fbe7932da055581aa815edc9f6ff8191.tar.gz cuberite-2f81c1d7fbe7932da055581aa815edc9f6ff8191.tar.bz2 cuberite-2f81c1d7fbe7932da055581aa815edc9f6ff8191.tar.lz cuberite-2f81c1d7fbe7932da055581aa815edc9f6ff8191.tar.xz cuberite-2f81c1d7fbe7932da055581aa815edc9f6ff8191.tar.zst cuberite-2f81c1d7fbe7932da055581aa815edc9f6ff8191.zip |
-rw-r--r-- | src/Globals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h index c2542f0d8..a5b9d391a 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -45,6 +45,8 @@ #define SIZE_T_FMT "%Iu" #define SIZE_T_FMT_PRECISION(x) "%" #x "Iu" #define SIZE_T_FMT_HEX "%Ix" + + #define NORETURN __declspec(noreturn) #elif defined(__GNUC__) @@ -69,6 +71,8 @@ #define SIZE_T_FMT "%zu" #define SIZE_T_FMT_PRECISION(x) "%" #x "zu" #define SIZE_T_FMT_HEX "%zx" + + #define NORETURN __attribute((__noreturn__)) #else |