aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.win32
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-02-17 23:11:49 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-02-17 23:11:49 +0000
commit8c1922e87eb26c3e51104e7ba52acbe5657410e6 (patch)
tree6507c1b3f0ac0ace859a109a49addbf4bc1f9c26 /config.h.win32
parentd00e4da3402f9370a8c151113872ed2e0ddec00c (diff)
On Windows, try putting __declspec(noreturn) in front of declarations of
routines that don't return. (This requires that some files include config.h to get WS_MSVC_NORETURN declared properly.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35989 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'config.h.win32')
-rw-r--r--config.h.win3211
1 files changed, 11 insertions, 0 deletions
diff --git a/config.h.win32 b/config.h.win32
index 92f7057a16..bfed02b776 100644
--- a/config.h.win32
+++ b/config.h.win32
@@ -85,6 +85,17 @@
# define WS_VAR_IMPORT extern
#endif
+/*
+ * 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 __declspec(noreturn)
+
/* Define if you have the gethostbyname2 function. */
/* #undef HAVE_GETHOSTBYNAME2 */