diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-08-19 17:48:08 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-08-19 18:26:13 -0300 |
commit | 465649d73e552cfb1e74e343eea3341b2842ccd6 (patch) | |
tree | b9ae43dfb79f359f96e44a5af41741fb11ea8811 /libpyside/pysidemacros.h | |
parent | 23672770ea6fd79c38fed0695fc92ca193f0ece4 (diff) |
created macro to compile pyside modules.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'libpyside/pysidemacros.h')
-rw-r--r-- | libpyside/pysidemacros.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libpyside/pysidemacros.h b/libpyside/pysidemacros.h index c9e1e11de..ccf8e379a 100644 --- a/libpyside/pysidemacros.h +++ b/libpyside/pysidemacros.h @@ -36,10 +36,14 @@ #define PYSIDEMACROS_H #if defined _WIN32 || defined __CYGWIN__ - #if PYSIDE_BUILD + #if PYSIDE_EXPORTS #define PYSIDE_API __declspec(dllexport) #else - #define PYSIDE_API __declspec(dllimport) + #if defined __MINGW32__ + #define PYSIDE_API + #else + #define PYSIDE_API __declspec(dllimport) + #endif #endif #else #if __GNUC__ >= 4 |