From e5f6be914bba64986097736d5707ac166bc7393e Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Tue, 19 Dec 2023 03:35:22 +0000 Subject: [PATCH] [+] Clang/Win32 required map files (no) --- AuroraCommon.h | 2 +- AuroraConfiguration.hpp | 2 +- AuroraEnvironment.h | 11 ++++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/AuroraCommon.h b/AuroraCommon.h index e3c32ef..61c6f1b 100644 --- a/AuroraCommon.h +++ b/AuroraCommon.h @@ -1,6 +1,6 @@ /*** Copyright (©) 2020 Reece Wilson (a/k/a "Reece"). - All rights reserved. + All rights reserved. File: AuroraCommon.h Date: 2020-:( diff --git a/AuroraConfiguration.hpp b/AuroraConfiguration.hpp index 04d962f..ce6ac74 100644 --- a/AuroraConfiguration.hpp +++ b/AuroraConfiguration.hpp @@ -11,5 +11,5 @@ extern "C" { - #include "AuroraConfiguration.h" + #include "AuroraConfiguration.h" } \ No newline at end of file diff --git a/AuroraEnvironment.h b/AuroraEnvironment.h index a8b11c3..7035f2e 100644 --- a/AuroraEnvironment.h +++ b/AuroraEnvironment.h @@ -104,7 +104,7 @@ #define AURORA_SYMBOL_IMPORT __declspec(dllimport) #define AURORA_SYMBOL_EXPORT __declspec(dllexport) -#elif defined(AURORA_COMPILER_GCC) || defined(AURORA_COMPILER_CLANG) +#elif defined(AURORA_COMPILER_GCC) || defined(AURORA_COMPILER_CLANG) #if defined(__x86_64__) #define AURORA_ARCH_X64 @@ -128,8 +128,13 @@ #define AURORA_IS_32BIT #endif - #define AURORA_SYMBOL_IMPORT - #define AURORA_SYMBOL_EXPORT __attribute__((visibility("default"))) + #if defined(AURORA_IS_MODERNNT_DERIVED) + #define AURORA_SYMBOL_IMPORT + #define AURORA_SYMBOL_EXPORT __declspec(dllexport) + #else + #define AURORA_SYMBOL_IMPORT + #define AURORA_SYMBOL_EXPORT __attribute__((visibility("default"))) + #endif #endif