diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-09-23 12:19:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-09-23 12:19:12 (GMT) |
commit | 93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9 (patch) | |
tree | 0f51141ce77037f18b3777c23c9ab7666b590eea /generic/tcl.h | |
parent | 00e36faa85d26704fb289ee399cad3c810c0eaa2 (diff) | |
parent | 401ea793a5691a5dc91795371922de138ea7f68c (diff) | |
download | tcl-93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9.zip tcl-93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9.tar.gz tcl-93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9.tar.bz2 |
Merge trunk
Diffstat (limited to 'generic/tcl.h')
-rw-r--r-- | generic/tcl.h | 12 |
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 /* |