config.h

Go to the documentation of this file.
00001 
00002 
00003 
00032 
00033 // Copyright (C) 1997-2010 by Pawel Pilarczyk.
00034 //
00035 // This file is part of the Homology Library.  This library is free software;
00036 // you can redistribute it and/or modify it under the terms of the GNU
00037 // General Public License as published by the Free Software Foundation;
00038 // either version 2 of the License, or (at your option) any later version.
00039 //
00040 // This library is distributed in the hope that it will be useful,
00041 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00042 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00043 // GNU General Public License for more details.
00044 //
00045 // You should have received a copy of the GNU General Public License along
00046 // with this software; see the file "license.txt".  If not, write to the
00047 // Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
00048 // MA 02111-1307, USA.
00049 
00050 // Started in 2002. Last revision: January 25, 2010.
00051 
00052 
00053 #ifndef _CHOMP_SYSTEM_CONFIG_H_
00054 #define _CHOMP_SYSTEM_CONFIG_H_
00055 
00056 
00057 #if (defined (ppUNIX) || defined (ppDOS))
00058 #elif ((defined __GNUC__) && (defined __WIN32__))
00059 
00060         #define ppDOS
00061 
00062         #define ppUNIX
00063 #elif (defined (DJGPP) || defined (DEVCPP) || defined (MINGW))
00064 
00065         #define ppDOS
00066 
00067         #define ppUNIX
00068 #elif (defined (_BORLANDC_) || defined (__BORLANDC__) || defined (_MSC_VER))
00069 
00070         #define ppDOS
00071 #else
00072 
00073         #define ppUNIX
00074 #endif
00075 
00076 
00077 
00078 #if (defined (__WXMSW__) || defined (__WXGTK__) || defined (__WXMAC__) || \
00079         defined (__WXMOTIF__) || defined (__WXX11__))
00080 
00083         #define ppWXWIN
00084 
00085 #endif
00086 
00087 
00088 #ifdef __LONG_MAX__
00089 
00090         typedef short int16;
00091         #if (__LONG_MAX__ > 2147483647)
00092 
00093                 typedef int int32;
00094         #else
00095 
00096                 typedef long int32;
00097         #endif
00098 #else
00099 
00100         typedef short int16;
00102         typedef int int32;
00103 #endif
00104 
00116 typedef int int_t;
00117 
00118 
00119 #endif // _CHOMP_SYSTEM_CONFIG_H_
00120 
00122