aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/compat.h
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-18 17:03:38 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-18 17:03:38 +0000
commit9aacf0a023bfe4100a10efb2ebd377120b2cb395 (patch)
tree568f7b66866a653acde57e1fa902e4d491e54d47 /include/asterisk/compat.h
parent1c0212aaba9cde077488261f13b57cccb6095b67 (diff)
Revert last commit, apparently buildbot lied to me.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89397 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/compat.h')
-rw-r--r--include/asterisk/compat.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
index 0dd3685d6..a9f032b34 100644
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -52,14 +52,9 @@
#endif
#ifdef HAVE_ALLOCA_H
-#include <alloca.h>
-#elif defined(__GNUC__)
-#define alloca __builtin_alloca
-#elif defined(_AIX)
-#define alloca __alloca
-#elif defined(_MSC_VER)
-#include <malloc.h>
-#define alloca _alloca
+#include <alloca.h> /* not necessarily present - could be in stdlib */
+#elif defined(HAVE_ALLOCA)
+#include <malloc.h> /* see if it is here... */
#endif
#include <stdio.h> /* this is always present */