swr/rast: make SWR_VISIBLE attribute work for windows
authorGeorge Kyriazis <george.kyriazis@intel.com>
Tue, 11 Jul 2017 14:13:49 +0000 (08:13 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 11 Jul 2017 18:37:57 +0000 (13:37 -0500)
Needed to expose SwrGetInterface

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/common/os.h

index 8657709405984dc32a58b26939c42332520f0c46..a16f5779d82d06f249b9893134b26c2fd2c71567 100644 (file)
@@ -30,7 +30,7 @@
 #if (defined(FORCE_WINDOWS) || defined(_WIN32)) && !defined(FORCE_LINUX)
 
 #define SWR_API __cdecl
-#define SWR_VISIBLE
+#define SWR_VISIBLE  __declspec(dllexport)
 
 #ifndef NOMINMAX
 #define NOMINMAX