[FRAMEDYN] Do not define GCC <-> MSVC aliases when building the DLL

This fixes some issue when compiling without optimizations on GCC
This commit is contained in:
Jérôme Gardou 2023-07-22 23:48:05 +02:00 committed by Jérôme Gardou
parent 5508673dd5
commit ea331f074c
2 changed files with 3 additions and 1 deletions

View file

@ -24,6 +24,8 @@
/* INCLUDES ******************************************************************/
#define CHSTRING_BUILD
#include <chstring.h>
#define NDEBUG
#include <debug.h>

View file

@ -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 "\"");