From b3d8877b8de94f6ddd166ab0c50acfc43a48574c Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Wed, 18 Aug 2010 18:11:46 -0300 Subject: Use CMake DEFINES to export symbols. Reviewer: Hugo Parente Lima Luciano Wolf --- libshiboken/shibokenmacros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libshiboken/shibokenmacros.h') diff --git a/libshiboken/shibokenmacros.h b/libshiboken/shibokenmacros.h index f66083bef..5ef1718c5 100644 --- a/libshiboken/shibokenmacros.h +++ b/libshiboken/shibokenmacros.h @@ -39,10 +39,10 @@ // LIBSHIBOKEN_LOCAL is used for non-api symbols, i.e. internal functions and classes. // Generic helper definitions for shared library support #if defined _WIN32 || defined __CYGWIN__ - #if LIBSHIBOKEN_BUILD + #if LIBSHIBOKEN_EXPORTS #define LIBSHIBOKEN_API __declspec(dllexport) #else - #define LIBSHIBOKEN_API __declspec(dllimport) + #define LIBSHIBOKEN_API #endif #else #if __GNUC__ >= 4 -- cgit v1.2.3