diff options
author | escoffon <escoffon> | 1998-07-29 11:10:35 (GMT) |
---|---|---|
committer | escoffon <escoffon> | 1998-07-29 11:10:35 (GMT) |
commit | eb1bc81f09245c679576e4effe9b3310ed833842 (patch) | |
tree | 2b2a43d26de75ff2bdc6f80f219fb2f3c023641d | |
parent | ae70bad153d5dfe6aabae15acc249f6e5a45102c (diff) | |
download | tcl-eb1bc81f09245c679576e4effe9b3310ed833842.zip tcl-eb1bc81f09245c679576e4effe9b3310ed833842.tar.gz tcl-eb1bc81f09245c679576e4effe9b3310ed833842.tar.bz2 |
use "ifdef DLL_BUILD" instead of "ifndef STATIC_BUILD"
-rw-r--r-- | win/tclWinReg.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/win/tclWinReg.c b/win/tclWinReg.c index d2bd014..3054e53 100644 --- a/win/tclWinReg.c +++ b/win/tclWinReg.c @@ -25,17 +25,10 @@ * our entry point. */ -#ifndef STATIC_BUILD -#if defined(_MSC_VER) -# define EXPORT(a,b) __declspec(dllexport) a b -# define DllEntryPoint DllMain -#else -# if defined(__BORLANDC__) -# define EXPORT(a,b) a _export b -# else -# define EXPORT(a,b) a b -# endif -#endif +#ifdef DLL_BUILD +# if defined(_MSC_VER) +# define DllEntryPoint DllMain +# endif #endif /* @@ -114,7 +107,7 @@ static int SetValue(Tcl_Interp *interp, Tcl_Obj *keyNameObj, Tcl_Obj *valueNameObj, Tcl_Obj *dataObj, Tcl_Obj *typeObj); -EXTERN EXPORT(int,Registry_Init)(Tcl_Interp *interp); +EXTERN int Registry_Init(Tcl_Interp *interp); /* *---------------------------------------------------------------------- @@ -136,7 +129,7 @@ EXTERN EXPORT(int,Registry_Init)(Tcl_Interp *interp); */ #ifdef __WIN32__ -#ifndef STATIC_BUILD +#ifdef DLL_BUILD BOOL APIENTRY DllEntryPoint( HINSTANCE hInst, /* Library instance handle. */ @@ -164,7 +157,8 @@ DllEntryPoint( *---------------------------------------------------------------------- */ -EXPORT(int,Registry_Init)( +int +Registry_Init( Tcl_Interp *interp) { Tcl_CreateObjCommand(interp, "registry", RegistryObjCmd, NULL, NULL); |