The Original CHomP Software
config.h
Go to the documentation of this file.
1
3
32
33// Copyright (C) 1997-2020 by Pawel Pilarczyk.
34//
35// This file is part of my research software package. This is free software:
36// you can redistribute it and/or modify it under the terms of the GNU
37// General Public License as published by the Free Software Foundation,
38// either version 3 of the License, or (at your option) any later version.
39//
40// This software is distributed in the hope that it will be useful,
41// but WITHOUT ANY WARRANTY; without even the implied warranty of
42// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43// GNU General Public License for more details.
44//
45// You should have received a copy of the GNU General Public License
46// along with this software; see the file "license.txt". If not,
47// please, see <https://www.gnu.org/licenses/>.
48
49// Started in 2002. Last revision: January 25, 2010.
50
51
52#ifndef _CHOMP_SYSTEM_CONFIG_H_
53#define _CHOMP_SYSTEM_CONFIG_H_
54
55
56#if (defined (ppUNIX) || defined (ppDOS))
57#elif ((defined __GNUC__) && (defined __WIN32__))
59 #define ppDOS
61 #define ppUNIX
62#elif (defined (DJGPP) || defined (DEVCPP) || defined (MINGW))
64 #define ppDOS
66 #define ppUNIX
67#elif (defined (_BORLANDC_) || defined (__BORLANDC__) || defined (_MSC_VER))
69 #define ppDOS
70#else
72 #define ppUNIX
73#endif
74
75
76
77#if (defined (__WXMSW__) || defined (__WXGTK__) || defined (__WXMAC__) || \
78 defined (__WXMOTIF__) || defined (__WXX11__))
79
82 #define ppWXWIN
83
84#endif
85
86
87#ifdef __LONG_MAX__
89 typedef short int16;
90 #if (__LONG_MAX__ > 2147483647)
92 typedef int int32;
93 #else
95 typedef long int32;
96 #endif
97#else
99 typedef short int16;
101 typedef int int32;
102#endif
103
115typedef int int_t;
116
117
118#endif // _CHOMP_SYSTEM_CONFIG_H_
119
121
short int16
Defines the type of 16-bit integers.
Definition: config.h:99
int int32
Defines the type of 32-bit integers.
Definition: config.h:101
int int_t
Index type for indexing arrays, counting cubes, etc.
Definition: config.h:115