Skip to content
Tcl Source Code Artifact [0147a9bfce]
Login

Artifact [0147a9bfce]

Artifact 0147a9bfce07355f9a8548b8ef70fd75212a0b1a:

Ticket change [0147a9bfce] - New ticket [633990ffffffffff|633990ffff] <i>tcl.h always makes incorrect #define</i>. by edwardross on 2002-11-05 19:27:37.
D 2002-11-05T19:27:37
J assignee kennykb
J cmimetype text/plain
J comment PROBLEM\n---------------\n\nin\stcl.h\sTCL_STORAGE_CLASS\sis\scorrectly\sdefined\sarround\nline\s249\swith\sthe\sfollowing:\n\n#undef\sTCL_STORAGE_CLASS\n#ifdef\sBUILD_tcl\n#\sdefine\sTCL_STORAGE_CLASS\sDLLEXPORT\n#else\n#\sifdef\sUSE_TCL_STUBS\n#\s\sdefine\sTCL_STORAGE_CLASS\n#\selse\n#\s\sdefine\sTCL_STORAGE_CLASS\sDLLIMPORT\n#\sendif\n#endif\n\nHowever\slater\sin\sthe\ssame\sfile\sarround\sline\s1691,\sit\sis\nincorrectly\sdefined\sas:\n\n#undef\sTCL_STORAGE_CLASS\n#define\sTCL_STORAGE_CLASS\n\nEXTERN\sintTcl_AppInit\s_ANSI_ARGS_((Tcl_Interp\s*interp));\n\n#endif\s/*\sRESOURCE_INCLUDED\s*/\n\n#undef\sTCL_STORAGE_CLASS\n#define\sTCL_STORAGE_CLASS\sDLLIMPORT\n\nThis\susually\sdoesn't\scause\sany\sproblems,\sbut\sif\syou\nthen\stry\sto\slink\swith\sproWrap.h,\sthis\sincorrect\ndefinition\sof\sTCL_STORAGE_CLASS\smeans\sthat\swe\scan't\nlink.\s\sWould\salso\sbe\sa\sproblem\sfor\slinking\swith\sstatic\nlibs\srather\sthan\sdlls\s\s(obviously\stalking\sabout\son\nwindows\shere).\n\nWorkaround\n------------------\n\nUndefine\sTCL_STORAGE_CLASS\sbefore\sinclude\sproWrap.h.\n\nPossible\sResolution\n-----------------------------\n\n(1)\schange\sthe\sdefinition\sat\sline\s249\sto:\n\n#ifdef\s__cplusplus\n#\s\sdefine\sHEAD_EXTERN\sextern\s"C"\n#else\n#\s\sdefine\sEXTERN\sextern\sTCL_STORAGE_CLASS\n#endif\n\n#define\sEXTERN\sHEAD_EXTERN\sTCL_STORAGE_CLASS\n\n(2)\sRemove\sall\sfurther\sdefines/undefines\sfor\nTCL_STORAGE_CLASS\sat\sline\s1694\setc.\n\n(3)\schange\sthe\sdeclaration\sat\sline\s1694\sto:\nEXTERN_HEAD\sint\sTcl_AppInit\s_ANSI_ARGS_((Tcl_Interp\n*interp));\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter edwardross
J subsystem 40.\sDynamic\sLoading
J title tcl.h\salways\smakes\sincorrect\s#define
J type Bug
K 633990ffffffffffffffffffffffffffffffffff
U edwardross
Z f42f756e158ae840963baf6e2e840836