https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ea331f074ce10d2b9c298…
commit ea331f074ce10d2b9c298f7d6bbf43130aa83bf3
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Sat Jul 22 23:48:05 2023 +0200
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Sun Jul 23 23:58:42 2023 +0200
[FRAMEDYN] Do not define GCC <-> MSVC aliases when building the DLL
This fixes some issue when compiling without optimizations on GCC
---
dll/win32/framedyn/chstring.cpp | 2 ++
sdk/include/psdk/chstring.h | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/dll/win32/framedyn/chstring.cpp b/dll/win32/framedyn/chstring.cpp
index 9f24a90ec2b..df2eacc65c1 100644
--- a/dll/win32/framedyn/chstring.cpp
+++ b/dll/win32/framedyn/chstring.cpp
@@ -24,6 +24,8 @@
/* INCLUDES ******************************************************************/
+#define CHSTRING_BUILD
+
#include <chstring.h>
#define NDEBUG
#include <debug.h>
diff --git a/sdk/include/psdk/chstring.h b/sdk/include/psdk/chstring.h
index a2994bc064b..384f40c8bbb 100644
--- a/sdk/include/psdk/chstring.h
+++ b/sdk/include/psdk/chstring.h
@@ -196,7 +196,7 @@ inline BOOL operator>=(const CHString& s1, CHSTRING_LPCWSTR s2)
{ return s1.Comp
inline BOOL operator>=(const CHString& s1, const CHString& s2) { return
s1.Compare(s2) >= 0; }
/* Have GCC link to the symbols exported by framedyn.dll */
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(CHSTRING_BUILD)
#define DEFINE_FRAMEDYN_ALIAS(alias, orig) __asm__(".set " #alias ",
\"" #orig "\"");