From 6c698fec59db33395cfd3097facf78870da8f5f9 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Thu, 1 Oct 2015 16:47:21 +0200 Subject: [PATCH] Fix usage of WIN32 define --- include/pybind/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind/common.h b/include/pybind/common.h index 05750c653..cfd387952 100644 --- a/include/pybind/common.h +++ b/include/pybind/common.h @@ -17,7 +17,7 @@ #endif #if !defined(PYTHON_EXPORT) -#if defined(WIN32) +#if defined(WIN32) || defined(_WIN32) #define PYTHON_EXPORT __declspec(dllexport) #else #define PYTHON_EXPORT __attribute__ ((visibility("default")))