comparison Isolated/SimpleThread.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
6 #endif 6 #endif
7 7
8 #if defined(_WIN32) 8 #if defined(_WIN32)
9 #if defined(SIMPLE_THREAD_BUILD_LIBRARY) 9 #if defined(SIMPLE_THREAD_BUILD_LIBRARY)
10 #define SIMPLE_THREAD_DECLSPEC __declspec(dllexport) 10 #define SIMPLE_THREAD_DECLSPEC __declspec(dllexport)
11 #else
12 #define SIMPLE_THREAD_DECLSPEC __declspec(dllimport)
13 #endif
14 #else 11 #else
15 #if defined(SIMPLE_THREAD_BUILD_LIBRARY) 12 #if defined(SIMPLE_THREAD_BUILD_LIBRARY)
16 #if defined (__GNUC__) && __GNUC__ >= 4 13 #if defined (__GNUC__) && __GNUC__ >= 4
17 #define SIMPLE_THREAD_DECLSPEC __attribute__((visibility("default"))) 14 #define SIMPLE_THREAD_DECLSPEC __attribute__((visibility("default")))
18 #else 15 #else