FFI: Add define to disable the FFI library.

This commit is contained in:
Mike Pall
2010-11-30 21:56:57 +01:00
parent 4ed8a1931b
commit 0ffd06aba8
2 changed files with 13 additions and 0 deletions

View File

@@ -183,6 +183,13 @@
#define LJ_HASJIT 1
#endif
/* Disable or enable the FFI extension. */
#if defined(LUAJIT_DISABLE_FFI) || defined(LJ_ARCH_NOFFI)
#define LJ_HASFFI 0
#else
#define LJ_HASFFI 1
#endif
#if LJ_ARCH_ENDIAN == LUAJIT_BE
#define LJ_LE 0
#define LJ_BE 1