Skip to content

Commit

Permalink
fix libffi headers/libs path
Browse files Browse the repository at this point in the history
  • Loading branch information
vi3t1 committed Dec 12, 2023
1 parent d8791cb commit ed3b965
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/script.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "dotnetfile.h"
#include "il.h"
#include "intel.h"
#include "../third-party/libffi/ffi.h"
#include "../third-party/libffi/include/ffi.h"

/**
* lua utils
Expand Down
10 changes: 5 additions & 5 deletions core/script.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
#define SCRIPT_H

#include "../third-party/lua/lua.hpp"
#include "../third-party/libffi/ffi.h"
#include "../third-party/libffi/include/ffi.h"

#ifndef VMP_GNU
#ifdef _WIN64
#if NDEBUG
#pragma comment(lib, "../third-party/libffi/libffi64.lib")
#pragma comment(lib, "../third-party/libffi/win32/vs16_x64/x64/Release/libffi.lib")
#else
#pragma comment(lib, "../third-party/libffi/libffi64d.lib")
#pragma comment(lib, "../third-party/libffi/win32/vs16_x64/x64/Debug/libffi.lib")
#endif // NDEBUG
#else
#if NDEBUG
#pragma comment(lib, "../third-party/libffi/libffi32.lib")
#pragma comment(lib, "../third-party/libffi/win32/vs16_x86/Release/libffi.lib")
#else
#pragma comment(lib, "../third-party/libffi/libffi32d.lib")
#pragma comment(lib, "../third-party/libffi/win32/vs16_x86/Release/libffi.lib")
#endif // NDEBUG
#endif // _WIN64
#endif // VMP_GNU
Expand Down

0 comments on commit ed3b965

Please sign in to comment.