summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-09-23 12:19:12 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-09-23 12:19:12 (GMT)
commit93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9 (patch)
tree0f51141ce77037f18b3777c23c9ab7666b590eea /generic/tcl.h
parent00e36faa85d26704fb289ee399cad3c810c0eaa2 (diff)
parent401ea793a5691a5dc91795371922de138ea7f68c (diff)
downloadtcl-93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9.zip
tcl-93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9.tar.gz
tcl-93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9.tar.bz2
Merge trunk
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 1f7b5cb..a08edde 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -143,8 +143,20 @@ extern "C" {
#endif
#if defined(__GNUC__) && (__GNUC__ > 2)
# define TCL_FORMAT_PRINTF(a,b) __attribute__ ((__format__ (__printf__, a, b)))
+# define TCL_NORETURN __attribute__ ((noreturn))
+# if defined(BUILD_tcl) || defined(BUILD_tk)
+# define TCL_NORETURN1 __attribute__ ((noreturn))
+# else
+# define TCL_NORETURN1 /* nothing */
+# endif
#else
# define TCL_FORMAT_PRINTF(a,b)
+# if defined(_MSC_VER) && (_MSC_VER >= 1310)
+# define TCL_NORETURN _declspec(noreturn)
+# else
+# define TCL_NORETURN /* nothing */
+# endif
+# define TCL_NORETURN1 /* nothing */
#endif
/*