From 8915f9142a712a8810e5ecf02a74ca07b1986b3a Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Fri, 2 Sep 2016 14:48:36 -0700 Subject: [PATCH] Static link fix --- project/Build.xml | 2 +- project/include/hx/CFFIExt.h | 4 ++++ project/src/hx/CFFIExt.cpp | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/project/Build.xml b/project/Build.xml index 4b73bc383..0df6aceeb 100644 --- a/project/Build.xml +++ b/project/Build.xml @@ -238,7 +238,7 @@ - + diff --git a/project/include/hx/CFFIExt.h b/project/include/hx/CFFIExt.h index c401fa29c..6c5901093 100644 --- a/project/include/hx/CFFIExt.h +++ b/project/include/hx/CFFIExt.h @@ -3,7 +3,11 @@ #include +#ifdef STATIC_LINK +void *LoadFunc(const char *inName) { return 0; } +#else extern void *LoadFunc(const char *inName); +#endif #ifdef IMPLEMENT_CFFI_EXT #define DEFFUNC_EXT(name,ret,def_args,call_args) \ diff --git a/project/src/hx/CFFIExt.cpp b/project/src/hx/CFFIExt.cpp index c6d87c410..a55255339 100644 --- a/project/src/hx/CFFIExt.cpp +++ b/project/src/hx/CFFIExt.cpp @@ -1,3 +1,3 @@ #define IMPLEMENT_CFFI_EXT -#include \ No newline at end of file +#include