Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GAGSys.h

Go to the documentation of this file.
00001 /*
00002   Copyright (C) 2001-2005 Stephane Magnenat & Luc-Olivier de Charrière
00003   for any question or comment contact us at nct@ysagoon.com or nuage@ysagoon.com
00004 
00005   This program is free software; you can redistribute it and/or modify
00006   it under the terms of the GNU General Public License as published by
00007   the Free Software Foundation; either version 2 of the License, or
00008   (at your option) any later version.
00009 
00010   This program is distributed in the hope that it will be useful,
00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013   GNU General Public License for more details.
00014 
00015   You should have received a copy of the GNU General Public License
00016   along with this program; if not, write to the Free Software
00017   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00018 */
00019 
00020 #ifndef __GAGSYS_H
00021 #define __GAGSYS_H
00022 
00023 #ifdef WIN32
00024     #include <windows.h>
00025     #include <sys/types.h>
00026     #include <sys/stat.h>
00027 //  #define snprintf _snprintf
00028 //  #define vsnprintf _vsnprintf
00029     #define S_IFDIR _S_IFDIR
00030 //  #pragma warning (disable : 4786)
00031 //  #pragma warning (disable : 4250)
00032     #undef max
00033     #undef min
00034 #endif
00035 
00036 #include <SDL.h>
00037 
00039 namespace GAG
00040 {
00041     #ifndef VARARRAY
00042     #ifdef _MSC_VER
00043     #include <malloc.h>
00045     #define VARARRAY(t,n,s) t *n=(t*)_alloca((s)*sizeof(t))
00046     #define strcasecmp _stricmp
00047     #else
00048 
00049     #define VARARRAY(t,n,s) t n[s]
00050     #endif
00051     #endif
00052 }
00053 
00058 #endif

Generated on Mon Oct 24 17:38:25 2005 for Teem by  doxygen 1.4.2