diff options
author | sebres <sebres@users.sourceforge.net> | 2017-07-03 13:25:32 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2017-07-03 13:25:32 (GMT) |
commit | 951cfc22688728ad9615a07682bd2406a3f0db2e (patch) | |
tree | 41d1a2f4854375c11bf3d16f9c2b32ebd4324630 | |
parent | 1b814ecdc54b17f604790d2242e3249dbf38d068 (diff) | |
download | tcl-951cfc22688728ad9615a07682bd2406a3f0db2e.zip tcl-951cfc22688728ad9615a07682bd2406a3f0db2e.tar.gz tcl-951cfc22688728ad9615a07682bd2406a3f0db2e.tar.bz2 |
[win] fallback to replace C++ keyword "inline" with C keyword "__inline"
Otherwise depending on the VC-version, context, include-order it can cause:
error C2054: expected '(' to follow 'inline'
-rw-r--r-- | generic/tclInt.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index ba15f95..991ffc3 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -55,6 +55,16 @@ typedef int ptrdiff_t; #endif +/* + * [MSVC] fallback to replace C++ keyword "inline" with C keyword "__inline" + * Otherwise depending on the VC-version, context, include-order it can cause: + * error C2054: expected '(' to follow 'inline' + */ +#if defined(_MSC_VER) && !defined(inline) +# define inline __inline +#endif + + /* * Ensure WORDS_BIGENDIAN is defined correctly: * Needs to happen here in addition to configure to work with fat compiles on |