Skip to content

Instantly share code, notes, and snippets.

@aaronbartell
Created October 7, 2014 16:47
Show Gist options
  • Save aaronbartell/3ba49368df0bbe6256c5 to your computer and use it in GitHub Desktop.
Save aaronbartell/3ba49368df0bbe6256c5 to your computer and use it in GitHub Desktop.
diff --git a/jni/libffi/include/ffi_common.h b/jni/libffi/include/ffi_common.h
index d953762..8349909 100644
--- a/jni/libffi/include/ffi_common.h
+++ b/jni/libffi/include/ffi_common.h
@@ -16,32 +16,7 @@ extern "C" {
#include <fficonfig.h>
-/* Do not move this. Some versions of AIX are very picky about where
- this is positioned. */
-#ifdef __GNUC__
-/* mingw64 defines this already in malloc.h. */
-#ifndef alloca
-# define alloca __builtin_alloca
-#endif
-# define MAYBE_UNUSED __attribute__((__unused__))
-#else
-# define MAYBE_UNUSED
-# if HAVE_ALLOCA_H
-# include <alloca.h>
-# else
-# ifdef _AIX
- #pragma alloca
-# else
-# ifndef alloca /* predefined by HP cc +Olibcalls */
-# ifdef _MSC_VER
-# define alloca _alloca
-# else
-char *alloca ();
-# endif
-# endif
-# endif
-# endif
-#endif
+
/* Check for the existence of memcpy. */
#if STDC_HEADERS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment