GnuCash 2.4.99
platform.h
00001 /********************************************************************\
00002  * This program is free software; you can redistribute it and/or    *
00003  * modify it under the terms of the GNU General Public License as   *
00004  * published by the Free Software Foundation; either version 2 of   *
00005  * the License, or (at your option) any later version.              *
00006  *                                                                  *
00007  * This program is distributed in the hope that it will be useful,  *
00008  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00009  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00010  * GNU General Public License for more details.                     *
00011  *                                                                  *
00012  * You should have received a copy of the GNU General Public License*
00013  * along with this program; if not, contact:                        *
00014  *                                                                  *
00015  * Free Software Foundation           Voice:  +1-617-542-5942       *
00016  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00017  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00018  *                                                                  *
00019 \********************************************************************/
00020 
00021 #ifndef GNC_PLATFORM_H
00022 #define GNC_PLATFORM_H
00023 
00024 #include "config.h"
00025 
00026 /* PLATFORM handles OS, operating environment, graphics API, and CPU */
00027 #define PLATFORM(GNC_FEATURE) (defined( GNC_PLATFORM_##GNC_FEATURE ) && GNC_PLATFORM_##GNC_FEATURE)
00028 #define COMPILER(GNC_FEATURE) (defined( GNC_COMPILER_##GNC_FEATURE ) && GNC_COMPILER_##GNC_FEATURE)
00029 #define HAVE(GNC_FEATURE) (defined( HAVE_##GNC_FEATURE ) && HAVE_##GNC_FEATURE)
00030 #define USE(GNC_FEATURE) (defined( GNC_USE_##GNC_FEATURE ) && GNC_USE_##GNC_FEATURE)
00031 #define ENABLE(GNC_FEATURE) (defined( ENABLE_##GNC_FEATURE ) && ENABLE_##GNC_FEATURE)
00032 
00033 /* Operating systems - low-level dependencies */
00034 
00035 /* Operating environments */
00036 
00037 /* Graphics engines */
00038 
00039 /* CPU */
00040 
00041 /* Compiler */
00042 
00043 /* COMPILER(MSVC) */
00044 #if defined(_MSC_VER)
00045 #define GNC_COMPILER_MSVC 1
00046 #if _MSC_VER < 1400
00047 #define GNC_COMPILER_MSVC7 1
00048 #endif
00049 #endif
00050 
00051 /* COMPILER(RVCT) */
00052 #if defined(__CC_ARM) || defined(__ARMCC__)
00053 #define GNC_COMPILER_RVCT 1
00054 #endif
00055 
00056 /* COMPILER(GCC) */
00057 /* --gnu option of the RVCT compiler also defines __GNUC__ */
00058 #if defined(__GNUC__) && !COMPILER(RVCT)
00059 #define GNC_COMPILER_GCC 1
00060 #endif
00061 
00062 /* COMPILER(MINGW) */
00063 #if defined(MINGW) || defined(__MINGW32__)
00064 #define GNC_COMPILER_MINGW 1
00065 #endif
00066 
00067 /* ENABLE macro defaults */
00068 
00069 #endif /* GNC_PLATFORM_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines