From 90a4e4a709eacce3e21146bff14c1b945567c7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 22 Jun 2013 19:47:04 +0200 Subject: [PATCH] TgaImporter: simplified visibility macros. --- src/Plugins/TgaImporter/TgaImporter.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/Plugins/TgaImporter/TgaImporter.h b/src/Plugins/TgaImporter/TgaImporter.h index 3280b0879..f787bf452 100644 --- a/src/Plugins/TgaImporter/TgaImporter.h +++ b/src/Plugins/TgaImporter/TgaImporter.h @@ -28,21 +28,15 @@ * @brief Class Magnum::Trade::TgaImporter::TgaImporter */ +#include #include -#ifndef DOXYGEN_GENERATING_OUTPUT -#ifdef _WIN32 - #ifdef TgaImporter_EXPORTS - #define MAGNUM_TGAIMPORTER_EXPORT __declspec(dllexport) - #else - #define MAGNUM_TGAIMPORTER_EXPORT __declspec(dllimport) - #endif - #define MAGNUM_TGAIMPORTER_LOCAL +#ifdef TgaImporter_EXPORTS + #define MAGNUM_TGAIMPORTER_EXPORT CORRADE_VISIBILITY_EXPORT #else - #define MAGNUM_TGAIMPORTER_EXPORT __attribute__ ((visibility ("default"))) - #define MAGNUM_TGAIMPORTER_LOCAL __attribute__ ((visibility ("hidden"))) -#endif + #define MAGNUM_TGAIMPORTER_EXPORT CORRADE_VISIBILITY_IMPORT #endif +#define MAGNUM_TGAIMPORTER_LOCAL CORRADE_VISIBILITY_LOCAL namespace Magnum { namespace Trade { namespace TgaImporter {