diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2013-04-02 16:01:00 +1000 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2013-04-02 16:01:00 +1000 |
commit | b517696fb2f5cb91475ba5ad93594ea20b555ced (patch) | |
tree | 99858e9b46a46100288db618518b402a85779769 | |
parent | c86b4b3d43c2171d71e4b9f1d681330ae9523d93 (diff) | |
download | ffi-b517696fb2f5cb91475ba5ad93594ea20b555ced.tar.gz |
Fix #259 by only using the custom x86_64 trampoline on MacOS and Linux
-rw-r--r-- | ext/ffi_c/MethodHandle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi_c/MethodHandle.c b/ext/ffi_c/MethodHandle.c index ba4293b..56a1d39 100644 --- a/ext/ffi_c/MethodHandle.c +++ b/ext/ffi_c/MethodHandle.c @@ -77,7 +77,7 @@ typedef int bool; static bool prep_trampoline(void* ctx, void* code, Closure* closure, char* errmsg, size_t errmsgsize); static long trampoline_size(void); -#if defined(__x86_64__) && defined(__GNUC__) && !defined(__sun) +#if defined(__x86_64__) && (defined(__linux__) || defined(__APPLE__)) # define CUSTOM_TRAMPOLINE 1 #endif |