From a75d82e81e36b784b7d34402f0e486beded770df Mon Sep 17 00:00:00 2001
From: Martin Heistermann <git@mheistermann.de>
Date: Fri, 31 Jan 2025 12:22:41 +0100
Subject: [PATCH] Use CMake-generated export headers.

---
 Config/BaseDefines.hh | 31 ++-----------------------------
 1 file changed, 2 insertions(+), 29 deletions(-)

diff --git a/Config/BaseDefines.hh b/Config/BaseDefines.hh
index e287137..b914b39 100644
--- a/Config/BaseDefines.hh
+++ b/Config/BaseDefines.hh
@@ -1,34 +1,7 @@
 // (C) Copyright 2019 by Autodesk, Inc.
 
-#ifndef BASEDLLEXPORT
-	#if defined(WIN32) || defined(_WIN32)
-    #ifdef BASEDLL
-      #ifdef USEBASE
-        #define BASEDLLEXPORT __declspec(dllimport)
-        #define BASEDLLEXPORTONLY
-			#else
-        #define BASEDLLEXPORT __declspec(dllexport)
-        #define BASEDLLEXPORTONLY __declspec(dllexport)
-			#endif
-    #else
-      #define BASEDLLEXPORT
-      #define BASEDLLEXPORTONLY
-		#endif
-	#else // non-Windows symbols export:
-    #ifdef BASEDLL
-      // only export symbols if BASEDLL is defined (same behavior as Windows)
-      #define BASEDLLEXPORT __attribute__((visibility("default")))
-      #define BASEDLLEXPORTONLY BASEDLLEXPORT
-    #else // BASEDLL not defined
-      // this allows building Base as static library without exposing its symbols
-      #define BASEDLLEXPORT
-      #define BASEDLLEXPORTONLY
-    #endif // BASEDLL
-	#endif
-#endif
-
-#undef min
-#undef max
+#include <Base/Config/Export.hh>
+#define BASEDLLEXPORT BASE_EXPORT
 
 #if defined(_MSC_VER) 
 
-- 
GitLab