comparison ALmixer.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 e2687188aea5
children 398d1cb12448
comparison
equal deleted inserted replaced
70:7d63f5149d40 71:36644b1b940b
134 134
135 #ifdef ALMIXER_COMPILE_WITHOUT_SDL 135 #ifdef ALMIXER_COMPILE_WITHOUT_SDL
136 #if defined(_WIN32) 136 #if defined(_WIN32)
137 #if defined(ALMIXER_BUILD_LIBRARY) 137 #if defined(ALMIXER_BUILD_LIBRARY)
138 #define ALMIXER_DECLSPEC __declspec(dllexport) 138 #define ALMIXER_DECLSPEC __declspec(dllexport)
139 #else
140 #define ALMIXER_DECLSPEC __declspec(dllimport)
141 #endif 139 #endif
142 #else 140 #else
143 #if defined(ALMIXER_BUILD_LIBRARY) 141 #if defined(ALMIXER_BUILD_LIBRARY)
144 #if defined (__GNUC__) && __GNUC__ >= 4 142 #if defined (__GNUC__) && __GNUC__ >= 4
145 #define ALMIXER_DECLSPEC __attribute__((visibility("default"))) 143 #define ALMIXER_DECLSPEC __attribute__((visibility("default")))