Artifact eaa4c5761aa16c9668225078f789e7242ddff86b:
- File nsf/patches/all/nsf-all-noextern-fix.diff — part of check-in [0dc8670b62] at 2020-09-02 16:01:49 on branch trunk — * nsf/build.sh, patches/all/sf-all-noextern-fix.diff: Provide workaround for Tcl bundled with Kitcreator not providing for the EXTERN macro (user: ssoberni, size: 495) [annotate] [blame] [check-ins using]
--- nsf2.3.0/generic/nsf.h.orig 2020-09-02 17:32:45.000000000 +0200 +++ nsf2.3.0/generic/nsf.h 2020-09-02 17:34:08.000000000 +0200 @@ -40,6 +40,20 @@ #include "tcl.h" +/* + * Make sure EXTERN isn't defined elsewhere. + */ + +#ifdef EXTERN +# undef EXTERN +#endif /* EXTERN */ + +#ifdef __cplusplus +# define EXTERN extern "C" TCL_STORAGE_CLASS +#else +# define EXTERN extern TCL_STORAGE_CLASS +#endif + #undef TCL_STORAGE_CLASS #ifdef BUILD_nsf # define TCL_STORAGE_CLASS DLLEXPORT