comparison Isolated/tErrorLib.h @ 71:36644b1b940b

Removed use of dllimport for Windows. Johnson Lin reported that he was getting warnings about it. I think the problem is that I didn't handle the case where you compile the files into your project or statically link. In this case you don't want dllexport or dllimport. From what I read, dllimport is optional (an optimization hint). Since this is becoming a nuisance, I rather just remove it rather than require another build flag.
author Eric Wing <ewing . public |-at-| gmail . com>
date Wed, 20 Jun 2012 10:46:03 -0700
parents 208a9ed20087
children 398d1cb12448
comparison
equal deleted inserted replaced
70:7d63f5149d40 71:36644b1b940b
273 273
274 /** Windows needs to know explicitly which functions to export in a DLL. */ 274 /** Windows needs to know explicitly which functions to export in a DLL. */
275 #if defined(_WIN32) 275 #if defined(_WIN32)
276 #if defined(TERROR_BUILD_LIBRARY) 276 #if defined(TERROR_BUILD_LIBRARY)
277 #define TERROR_DECLSPEC __declspec(dllexport) 277 #define TERROR_DECLSPEC __declspec(dllexport)
278 #else
279 #define TERROR_DECLSPEC __declspec(dllimport)
280 #endif 278 #endif
281 #else 279 #else
282 #if defined(TERROR_BUILD_LIBRARY) 280 #if defined(TERROR_BUILD_LIBRARY)
283 #if defined (__GNUC__) && __GNUC__ >= 4 281 #if defined (__GNUC__) && __GNUC__ >= 4
284 #define TERROR_DECLSPEC __attribute__((visibility("default"))) 282 #define TERROR_DECLSPEC __attribute__((visibility("default")))