From 1418186d82eb7c299bb305844348f76334a9d83c Mon Sep 17 00:00:00 2001 From: Tom Lally Date: Tue, 30 Aug 2022 11:29:51 +0100 Subject: [PATCH] Only use dllexport attribute for windows targets. --- src/Common/precompiled.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Common/precompiled.h b/src/Common/precompiled.h index bb78f020..73cd04b7 100644 --- a/src/Common/precompiled.h +++ b/src/Common/precompiled.h @@ -228,7 +228,11 @@ typedef union _LARGE_INTEGER { #if defined(_MSC_VER) #define DLLEXPORT __declspec(dllexport) #elif defined(__GNUC__) - #define DLLEXPORT __attribute__((dllexport)) + #if BOOST_OS_WINDOWS + #define DLLEXPORT __attribute__((dllexport)) + #else + #define DLLEXPORT + #endif #else #error No definition for DLLEXPORT #endif