From 1f34d4e5cfaa586121fe207ee99a36152c7fcfd0 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Tue, 18 Jan 2005 09:04:06 +0000 Subject: [PATCH] More compatible handling of alloca. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1455 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/port.h | 2 +- sc2/src/sc2code/libs/uio/uioport.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/port.h b/sc2/src/port.h index 8a83e6882..5f84301d6 100644 --- a/sc2/src/port.h +++ b/sc2/src/port.h @@ -102,7 +102,7 @@ typedef unsigned short mode_t; # elif defined (_MSC_VER) # define alloca _alloca # endif -#else +#elif defined(__linux__) || defined(__svr4__) # include #endif diff --git a/sc2/src/sc2code/libs/uio/uioport.h b/sc2/src/sc2code/libs/uio/uioport.h index 31b95937d..ac626f967 100644 --- a/sc2/src/sc2code/libs/uio/uioport.h +++ b/sc2/src/sc2code/libs/uio/uioport.h @@ -152,7 +152,7 @@ typedef unsigned short mode_t; # elif defined (_MSC_VER) # define alloca _alloca # endif -#else +#elif defined(__linux__) || defined(__svr4__) # include #endif