mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-21 19:41:14 +00:00
Compilation fixes (#267)
* Fix q3 plugin compilation on aarch64 macOS. * Fix duplicate symbol when statically linking ezhud.
This commit is contained in:
parent
72fe01555a
commit
12985c8b31
3 changed files with 12 additions and 2 deletions
|
@ -4,12 +4,12 @@
|
|||
|
||||
#ifdef FTEENGINE
|
||||
#define Plug_Init Plug_EZHud_Init
|
||||
#else
|
||||
#endif
|
||||
|
||||
plug2dfuncs_t *drawfuncs;
|
||||
plugclientfuncs_t *clientfuncs;
|
||||
plugfsfuncs_t *filefuncs;
|
||||
pluginputfuncs_t *inputfuncs;
|
||||
#endif
|
||||
|
||||
struct ezcl_s cl;
|
||||
struct ezcls_s cls;
|
||||
|
|
|
@ -8,6 +8,13 @@
|
|||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef FTEENGINE
|
||||
#define drawfuncs ezhud_drawfuncs
|
||||
#define filefuncs ezhud_filefuncs
|
||||
#define clientfuncs ezhud_clientfuncs
|
||||
#define inputfuncs ezhud_inputfuncs
|
||||
#endif
|
||||
|
||||
extern plug2dfuncs_t *drawfuncs;
|
||||
extern plugfsfuncs_t *filefuncs;
|
||||
extern plugclientfuncs_t *clientfuncs;
|
||||
|
|
|
@ -155,6 +155,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#define idx64 1
|
||||
#define ARCH_STRING "x86_64"
|
||||
#define Q3_LITTLE_ENDIAN
|
||||
#elif defined __aarch64__
|
||||
#define ARCH_STRING "aarch64"
|
||||
#define Q3_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
||||
#define DLL_EXT ".dylib"
|
||||
|
|
Loading…
Reference in a new issue