1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 00:10:27 +00:00

Update changelog to say FFI initially only available on non-windows

platforms.
This commit is contained in:
Calvin Rose 2022-06-19 12:42:44 -05:00
parent 6ea27fe836
commit 965f45aa3f
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,8 @@
All notable changes to this project will be documented in this file.
## Unreleased - ???
- Add experimental `ffi/` module for interfacing with dynamic libraries and raw function pointers.
- Add experimental `ffi/` module for interfacing with dynamic libraries and raw function pointers. Only available
on 64 bit linux, mac, and bsd systems.
- Allow using `&named` in function prototypes for named arguments. This is a more ergonomic
variant of `&keys` that isn't as redundant, more self documenting, and allows extension to
things like default arguments.

View File

@ -166,7 +166,7 @@ extern "C" {
/* Enable or disable the FFI library. Currently, FFI only enabled on
* x86-64, non-windows operating systems. */
#ifndef JANET_NO_FFI
#if !defined(JANET_WINDOWS) && (defined(__x86_64__) || defined(_M_X64))
#if !defined(JANET_WINDOWS) && !defined(__EMSCRIPTEN__) && (defined(__x86_64__) || defined(_M_X64))
#define JANET_FFI
#endif
#endif