Skip to content

Commit

Permalink
prevent compiler warnings on OS X about ambiguous alloca macro (defin…
Browse files Browse the repository at this point in the history
…ed twice)
  • Loading branch information
panicsteve committed Jun 12, 2015
1 parent 6e32530 commit 90197f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libffi-osx/include/ffi_common.h
Expand Up @@ -14,6 +14,7 @@ extern "C" {


#include <fficonfig.h> #include <fficonfig.h>


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


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

0 comments on commit 90197f2

Please sign in to comment.