Skip to content
Permalink
Browse files

prevent compiler warnings on OS X about ambiguous alloca macro (defin…

…ed twice)
  • Loading branch information...
panicsteve committed Jun 12, 2015
1 parent 6e32530 commit 90197f2f7219db1865e4520629794892d88ba221
Showing with 2 additions and 0 deletions.
  1. +2 −0 libffi-osx/include/ffi_common.h
@@ -14,6 +14,7 @@ extern "C" {

#include <fficonfig.h>

#ifndef TARGET_OS_OPENSTEP
/* Do not move this. Some versions of AIX are very picky about where
this is positioned. */
#ifdef __GNUC__
@@ -33,6 +34,7 @@ char *alloca ();
# endif
# endif
#endif
#endif /* TARGET_OS_OPENSTEP */

/* Check for the existence of memcpy. */
#if STDC_HEADERS

0 comments on commit 90197f2

Please sign in to comment.
You can’t perform that action at this time.