From 92ada4499ba5036d694a2592e199ec77bd8af97e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 18 Jun 2016 13:38:18 +0200 Subject: compat, logic, api: fix export macro copy-paste errors --- opentrack-compat/compat-export.hpp | 15 --------------- opentrack-compat/compat-import.hpp | 15 --------------- opentrack-compat/export.hpp | 8 ++++---- opentrack-compat/import.hpp | 8 ++++---- opentrack-logic/export.hpp | 4 ++-- opentrack/export.hpp | 2 +- 6 files changed, 11 insertions(+), 41 deletions(-) delete mode 100644 opentrack-compat/compat-export.hpp delete mode 100644 opentrack-compat/compat-import.hpp diff --git a/opentrack-compat/compat-export.hpp b/opentrack-compat/compat-export.hpp deleted file mode 100644 index 2d6f1d3d..00000000 --- a/opentrack-compat/compat-export.hpp +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -#ifndef OPENTRACK_COMPAT_EXPORT -# ifdef _WIN32 -# define OPENTRACK_COMPAT_LINKAGE __declspec(dllexport) -# else -# define OPENTRACK_COMPAT_LINKAGE -# endif - -# ifndef _MSC_VER -# define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_COMPAT_LINKAGE -# else -# define OPENTRACK_COMPAT_EXPORT OPENTRACK_COMPAT_LINKAGE -# endif -#endif diff --git a/opentrack-compat/compat-import.hpp b/opentrack-compat/compat-import.hpp deleted file mode 100644 index 161ccc5d..00000000 --- a/opentrack-compat/compat-import.hpp +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -#ifndef OPENTRACK_COMPAT_EXPORT -# ifdef _WIN32 -# define OPENTRACK_COMPAT_LINKAGE __declspec(dllimport) -# else -# define OPENTRACK_COMPAT_LINKAGE -# endif - -# ifndef _MSC_VER -# define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_COMPAT_LINKAGE -# else -# define OPENTRACK_COMPAT_EXPORT OPENTRACK_COMPAT_LINKAGE -# endif -#endif diff --git a/opentrack-compat/export.hpp b/opentrack-compat/export.hpp index fbb62e1f..ccf25ff9 100644 --- a/opentrack-compat/export.hpp +++ b/opentrack-compat/export.hpp @@ -2,15 +2,15 @@ #ifdef BUILD_compat # ifdef _WIN32 -# define OPENTRACK_LINKAGE __declspec(dllexport) +# define OPENTRACK_COMPAT_LINKAGE __declspec(dllexport) # else -# define OPENTRACK_LINKAGE +# define OPENTRACK_COMPAT_LINKAGE # endif # ifndef _MSC_VER -# define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LINKAGE +# define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_COMPAT_LINKAGE # else -# define OPENTRACK_COMPAT_EXPORT OPENTRACK_LINKAGE +# define OPENTRACK_COMPAT_EXPORT OPENTRACK_COMPAT_LINKAGE # endif #else # include "import.hpp" diff --git a/opentrack-compat/import.hpp b/opentrack-compat/import.hpp index 1b4aa8f1..aed266bd 100644 --- a/opentrack-compat/import.hpp +++ b/opentrack-compat/import.hpp @@ -1,13 +1,13 @@ #pragma once #ifdef _WIN32 -# define OPENTRACK_LINKAGE __declspec(dllimport) +# define OPENTRACK_COMPAT_LINKAGE __declspec(dllimport) #else -# define OPENTRACK_LINKAGE +# define OPENTRACK_COMPAT_LINKAGE #endif #ifndef _MSC_VER -# define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LINKAGE +# define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_COMPAT_LINKAGE #else -# define OPENTRACK_COMPAT_EXPORT OPENTRACK_LINKAGE +# define OPENTRACK_COMPAT_EXPORT OPENTRACK_COMPAT_LINKAGE #endif diff --git a/opentrack-logic/export.hpp b/opentrack-logic/export.hpp index 699fdd6a..db4f0d86 100644 --- a/opentrack-logic/export.hpp +++ b/opentrack-logic/export.hpp @@ -10,9 +10,9 @@ # ifndef _MSC_VER # define OPENTRACK_LOGIC_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LOGIC_LINKAGE # else -# define OPENTRACK_LOGIC_EXPORT OPENTRACK_LINKAGE +# define OPENTRACK_LOGIC_EXPORT OPENTRACK_LOGIC_LINKAGE # endif #else # include "import.hpp" -#endif \ No newline at end of file +#endif diff --git a/opentrack/export.hpp b/opentrack/export.hpp index 2dab8bef..96daef53 100644 --- a/opentrack/export.hpp +++ b/opentrack/export.hpp @@ -10,7 +10,7 @@ # ifndef _MSC_VER # define OPENTRACK_API_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_API_LINKAGE # else -# define OPENTRACK_API_EXPORT OPENTRACK_LINKAGE +# define OPENTRACK_API_EXPORT OPENTRACK_API_LINKAGE # endif #else -- cgit v1.2.3