diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-18 01:22:39 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-18 01:22:39 +0000 |
commit | cc4cb141adcffc29f7c70a68869919c5549bf24d (patch) | |
tree | 38e9e5ade1f9e9ce9c22d1aa0c9a9644d53b684a /cpp/include/IceUtil/Config.h | |
parent | exception fixes (diff) | |
download | ice-cc4cb141adcffc29f7c70a68869919c5549bf24d.tar.bz2 ice-cc4cb141adcffc29f7c70a68869919c5549bf24d.tar.xz ice-cc4cb141adcffc29f7c70a68869919c5549bf24d.zip |
win fixes
Diffstat (limited to 'cpp/include/IceUtil/Config.h')
-rw-r--r-- | cpp/include/IceUtil/Config.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/cpp/include/IceUtil/Config.h b/cpp/include/IceUtil/Config.h index b70cef04e8d..0b26c26d02b 100644 --- a/cpp/include/IceUtil/Config.h +++ b/cpp/include/IceUtil/Config.h @@ -13,6 +13,16 @@ #if defined(WIN32) +# if !defined(_DLL) || !defined(_MT) +# error "Only multi-threaded DLL libraries can be used with Ice!" +# endif + +# ifdef ICE_UTIL_API_EXPORTS +# define ICE_UTIL_API __declspec(dllexport) +# else +# define ICE_UTIL_API __declspec(dllimport) +# endif + # include <windows.h> // '...' : forcing value to bool 'true' or 'false' (performance warning) @@ -32,7 +42,8 @@ #elif defined(__linux__) && defined(i386) -// Nothing here yet +# define ICE_UTIL_API /**/ +# define HAVE_READLINE #else |