Fix warnings on FreeBSD
This commit is contained in:
committed by
Jon Trulson
parent
885b65a09a
commit
297b6bd845
@@ -99,6 +99,9 @@ pragma on(alloca);
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#if !defined(__linux__)
|
||||
#ifdef alloca
|
||||
#undef alloca
|
||||
#endif
|
||||
#define alloca ___builtin_alloca
|
||||
#endif
|
||||
#define ALLOCATE_LOCAL(size) alloca((int)(size))
|
||||
|
||||
Reference in New Issue
Block a user