From 22fdbb19136ef98fe18069b9ac7b2f98ff372124 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 27 Apr 2000 17:27:46 +0000 Subject: [PATCH] removed extern from epicsShareDef because strange mysteries persist with the microsoft compiler: sometines extern is required with the instantiation and other times not ... --- src/libCom/misc/shareLib.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/libCom/misc/shareLib.h b/src/libCom/misc/shareLib.h index 3cd1d4d8d..b5e961a3f 100644 --- a/src/libCom/misc/shareLib.h +++ b/src/libCom/misc/shareLib.h @@ -115,9 +115,14 @@ * does not match their documentation. */ # if defined(EPICS_DLL_NO) /* this indicates that we are not building a DLL */ -# define epicsShareDef extern +# define epicsShareDef # else -# define epicsShareDef __declspec(dllexport) extern + /* + * strange mysteries arrise when using this __declspec(dllexport): + * sometimes we must use extern in front of this and other times not. + * This varies with different declarations. + */ +# define epicsShareDef __declspec(dllexport) # endif # define READONLY const /*