diff options
author | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-02-21 21:33:54 +0000 |
---|---|---|
committer | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-02-21 21:33:54 +0000 |
commit | fe808534420e53112ae571511c1733e2598b0b6a (patch) | |
tree | f9d7e19185d4dce2a076fcb42ceeb31b7a575877 /cmakeconfig.h.in | |
parent | 3508c7a7e7401b78c4016feb848c3e9a6f57b96b (diff) |
From Roland Knall:
WS_MSVC_NORETURN is undeclared under a non-Windows operating system, which
breaks compilation in the files epan/except.c and dumpcap.c as well as any
file including epan/except.h
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36023 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'cmakeconfig.h.in')
-rw-r--r-- | cmakeconfig.h.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in index d739c42174..720f46140e 100644 --- a/cmakeconfig.h.in +++ b/cmakeconfig.h.in @@ -354,6 +354,15 @@ dynamically-linked libraries */ #define WS_VAR_IMPORT @WS_VAR_IMPORT@ +/* Define WS_MSVC_NORETURN appropriately for declarations of routines that + never return (just like Charlie on the MTA). + + Note that MSVC++ expects __declspec(noreturn) to precede the function + name and GCC, as far as I know, expects __attribute__((noreturn)) to + follow the function name, so we need two different flavors of + noreturn tag. */ +#define WS_MSVC_NORETURN @WS_MSVC_NORETURN@ + /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ /* Note: not use in the code */ |