diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-11 15:25:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-11 15:25:12 (GMT) |
commit | 353247a615b7fd61f9d3d0e8b83932117b972cf0 (patch) | |
tree | b3ec63db1c5a72053b4a6942ed9641109cee0d60 /win | |
parent | bd33c4f3a417d27aebd67b95239b3efd2238dac9 (diff) | |
download | tk-353247a615b7fd61f9d3d0e8b83932117b972cf0.zip tk-353247a615b7fd61f9d3d0e8b83932117b972cf0.tar.gz tk-353247a615b7fd61f9d3d0e8b83932117b972cf0.tar.bz2 |
Fix [4fb812af90]: Build Failure on msys2 with gcc10. Also add more __cplusplus-related scope blocks around (internal) MODULE_SCOPE definitions.
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinInt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/win/tkWinInt.h b/win/tkWinInt.h index 7e3119e..92bcc0d 100644 --- a/win/tkWinInt.h +++ b/win/tkWinInt.h @@ -142,6 +142,9 @@ MODULE_SCOPE const int tkpWinBltModes[]; #include "tkIntPlatDecls.h" +#ifdef __cplusplus +extern "C" { +#endif /* * Special proc needed as tsd accessor function between * tkWinX.c:GenerateXEvent and tkWinClipboard.c:UpdateClipboard @@ -246,4 +249,8 @@ MODULE_SCOPE Tcl_Obj * TkWin32ErrorObj(HRESULT hrError); #define GWLP_ID GWL_ID #endif /* !GWLP_WNDPROC */ +#ifdef __cplusplus +} +#endif + #endif /* _TKWININT */ |