From bab2f1ce0549f5588a7392a0c6267ebd86a5c3ec Mon Sep 17 00:00:00 2001 From: koolsmoky <> Date: Mon, 12 Jul 2004 17:41:24 +0000 Subject: [PATCH] use dllimport for __MSC__ imports --- swlibs/fxmisc/3dfx.h | 2 +- swlibs/fxmisc/fxdll.h | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/swlibs/fxmisc/3dfx.h b/swlibs/fxmisc/3dfx.h index a5049f9..9230138 100644 --- a/swlibs/fxmisc/3dfx.h +++ b/swlibs/fxmisc/3dfx.h @@ -69,7 +69,7 @@ typedef struct { float r, g, b, a; } FxColor4; # define FX_ENTRY # define FX_CALL # else -# define FX_ENTRY extern +# define FX_ENTRY __declspec( dllimport ) # define FX_CALL __stdcall # endif #elif defined(__WATCOMC__) diff --git a/swlibs/fxmisc/fxdll.h b/swlibs/fxmisc/fxdll.h index 0e380fd..07f829c 100644 --- a/swlibs/fxmisc/fxdll.h +++ b/swlibs/fxmisc/fxdll.h @@ -90,8 +90,13 @@ #endif /* FX_DLL_ENABLE */ #else /* FX_DLL_DEFINITION */ - #define FX_ENTRY extern - #define FX_CALL __stdcall + #if defined(__MSC__) + #define FX_ENTRY __declspec( dllimport ) + #define FX_CALL __stdcall + #else + #define FX_ENTRY extern + #define FX_CALL __stdcall + #endif #endif /* FX_DLL_DEFINITION */ /*