Instead of using __CYGWIN__ and __WIN32__, rely on that GVDLL is
correctly set for all platforms.
Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.
return TCL_OK;
}
-#ifdef __CYGWIN__
-int Gdtclft_SafeInit(Tcl_Interp * interp)
-#else
-#ifdef __WIN32__
+#ifdef GVDLL
__declspec(dllexport) int Gdtclft_SafeInit(Tcl_Interp *interp)
#else
int Gdtclft_SafeInit(Tcl_Interp * interp)
#endif
-#endif
{
Tcl_CmdInfo info;
if (Gdtclft_Init(interp) != TCL_OK || Tcl_GetCommandInfo(interp, "gd", &info) != 1)