summaryrefslogtreecommitdiff
path: root/Xalloca.h
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-06-12 12:33:22 -0400
committerAdam Jackson <ajax@redhat.com>2009-06-12 12:33:22 -0400
commitbab9c572cd4dc916ff0acab99de8bb526212d77f (patch)
treef9e484e5d5157505712d6dac64d478716b468efa /Xalloca.h
parentced38e880b54f2aae31a5354aecb4235a129f0a4 (diff)
Remove a bunch of garbage for unsupported platforms.
Diffstat (limited to 'Xalloca.h')
-rw-r--r--Xalloca.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/Xalloca.h b/Xalloca.h
index cd827bb..02d8e11 100644
--- a/Xalloca.h
+++ b/Xalloca.h
@@ -74,19 +74,6 @@ from The Open Group.
* If you want something other than (DE)ALLOCATE_LOCAL_FALLBACK
* for ALLOCATE/DEALLOCATE_LOCAL then you add that in here.
*/
-# if defined(__HIGHC__)
-# ifndef NCR
- extern char *alloca();
-# if HCVERSION < 21003
-# define ALLOCATE_LOCAL(size) alloca((int)(size))
- pragma on(alloca);
-# else /* HCVERSION >= 21003 */
-# define ALLOCATE_LOCAL(size) _Alloca((int)(size))
-# endif /* HCVERSION < 21003 */
-# else /* NCR */
-# define ALLOCATE_LOCAL(size) alloca(size)
-# endif
-# endif /* defined(__HIGHC__) */
# ifdef __GNUC__
@@ -101,20 +88,18 @@ from The Open Group.
* Test is easy, the new one is named __builtin_alloca and comes
* from alloca.h which #defines alloca.
*/
-# ifndef NCR
-# if defined(vax) || defined(sun) || defined(apollo) || defined(stellar) || defined(alloca)
+# if defined(sun) || defined(alloca)
/*
* Some System V boxes extract alloca.o from /lib/libPW.a; if you
* decide that you don't want to use alloca, you might want to fix it here.
*/
/* alloca might be a macro taking one arg (hi, Sun!), so give it one. */
-# if !defined(__sgi) && !defined(__QNX__) && !defined(__cplusplus)
+# if !defined(__cplusplus)
# define __Xnullarg /* as nothing */
extern void *alloca(__Xnullarg);
-# endif /* !__sgi && !__QNX && !__cplusplus */
+# endif
# define ALLOCATE_LOCAL(size) alloca((int)(size))
# endif /* who does alloca */
-# endif /* NCR */
# endif /* __GNUC__ */
#endif /* NO_ALLOCA */