diff Isolated/SimpleMutex.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
line wrap: on
line diff
--- a/Isolated/SimpleMutex.h	Wed Jun 20 10:41:06 2012 -0700
+++ b/Isolated/SimpleMutex.h	Wed Jun 20 10:46:03 2012 -0700
@@ -10,8 +10,6 @@
 	#if defined(_WIN32)
 		#if defined(SIMPLE_MUTEX_BUILD_LIBRARY)
 			#define SIMPLE_MUTEX_DECLSPEC __declspec(dllexport)
-		#else
-			#define SIMPLE_MUTEX_DECLSPEC __declspec(dllimport)
 		#endif
 	#else
 		#if defined(SIMPLE_MUTEX_BUILD_LIBRARY)