diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-12-09 19:55:38 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-12-09 19:55:38 (GMT) |
| commit | 4f69a6f297bc3013c0c00a24db52fd34a59f902e (patch) | |
| tree | 97b7adb3187d138bbdadbc21528e8d500f627721 | |
| parent | a58f5f14b0e37a49c40550868cbe53b0c6757d5a (diff) | |
| download | tcl-4f69a6f297bc3013c0c00a24db52fd34a59f902e.zip tcl-4f69a6f297bc3013c0c00a24db52fd34a59f902e.tar.gz tcl-4f69a6f297bc3013c0c00a24db52fd34a59f902e.tar.bz2 | |
Fix compilation with tcc. Thanks, Cyan Ogilvie for the report
| -rw-r--r-- | generic/tcl.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/generic/tcl.h b/generic/tcl.h index da3d1f0..f373382 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -156,8 +156,13 @@ extern "C" { # endif #else # define TCL_FORMAT_PRINTF(a,b) -# define TCL_NORETURN _declspec(noreturn) -# define TCL_NOINLINE __declspec(noinline) +# if defined(_MSC_VER) +# define TCL_NORETURN _declspec(noreturn) +# define TCL_NOINLINE __declspec(noinline) +# else +# define TCL_NORETURN /* nothing */ +# define TCL_NOINLINE /* nothing */ +# endif # define TCL_NORETURN1 /* nothing */ #endif |
