summaryrefslogtreecommitdiff
path: root/foreign_msvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'foreign_msvc.c')
-rw-r--r--foreign_msvc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/foreign_msvc.c b/foreign_msvc.c
index 86f5519..6a8bb7f 100644
--- a/foreign_msvc.c
+++ b/foreign_msvc.c
@@ -9,7 +9,7 @@ typedef struct {
HMODULE handle;
} Library;
-static FnPtr msvc_get_fn_ptr(ForeignFnManager *ffmgr, FnExpr *fn, Location call_where) {
+static FnPtr foreign_get_fn_ptr(ForeignFnManager *ffmgr, FnExpr *fn, Location call_where) {
FnPtr fn_ptr = fn->foreign.fn_ptr;
if (!fn_ptr) {
assert(fn->flags & FN_EXPR_FOREIGN);
@@ -41,8 +41,10 @@ static FnPtr msvc_get_fn_ptr(ForeignFnManager *ffmgr, FnExpr *fn, Location call_
return fn_ptr;
}
-#ifdef _WIN64
-#include "foreign_msvc64.c"
+#ifdef FOREIGN_USE_AVCALL
+#include "foreign_avcall.c"
+#elif defined _WIN64
+#include "foreign64.c"
#else
#include "foreign_msvc32.c"
#endif