00001 /* 00002 * Copyright 2005-2008 NVIDIA Corporation. All rights reserved. 00003 */ 00004 00005 /* 00006 00007 Copyright (C) 2002 Tensilica, Inc. All Rights Reserved. 00008 00009 This program is free software; you can redistribute it and/or modify it 00010 under the terms of version 2 of the GNU General Public License as 00011 published by the Free Software Foundation. 00012 00013 This program is distributed in the hope that it would be useful, but 00014 WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 Further, this software is distributed without any warranty that it is 00018 free of the rightful claim of any third person regarding infringement 00019 or the like. Any license provided herein, whether implied or 00020 otherwise, applies only to this software file. Patent licenses, if 00021 any, provided herein do not apply to combinations of this program with 00022 other software, or any other product whatsoever. 00023 00024 You should have received a copy of the GNU General Public License along 00025 with this program; if not, write the Free Software Foundation, Inc., 59 00026 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00027 00028 */ 00029 00030 00031 /* This file is used for Windows builds only. 00032 * For Cygwin and Mingw builds it is intentionally empty. 00033 * For the native Windows build it includes malloc.h. 00034 */ 00035 #ifndef _ALLOCA_H 00036 #define _ALLOCA_H 00037 00038 #if !defined(__GNUC__) 00039 #include <malloc.h> 00040 #endif 00041 00042 #ifdef __GNUC__ 00043 #ifndef alloca /* mingw defines alloca in malloc.h too */ 00044 #define alloca(size) __builtin_alloca(size) 00045 #endif 00046 #endif 00047 00048 00049 #endif /* _ALLOCA_H */
1.5.6