config.hpp
Go to the documentation of this file.
00001 /* 00002 Copyright 2008 Adobe Systems Incorporated 00003 Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt 00004 or a copy at http://stlab.adobe.com/licenses.html) 00005 */ 00006 00007 /*************************************************************************************************/ 00008 00009 #ifndef ADOBE_CONFIG_HPP 00010 #define ADOBE_CONFIG_HPP 00011 00012 /*************************************************************************************************/ 00013 00014 #include <boost/config.hpp> 00015 00016 /*************************************************************************************************/ 00017 00018 /* 00019 Caution: 00020 This is the only ASL header that is guarenteed to change with every release. Including 00021 this header will cause a recompile every time a new ASL version is released. 00022 00023 ADOBE_VERSION % 100 is the sub-minor version 00024 ADOBE_VERSION / 100 % 1000 is the minor version 00025 ADOBE_VERSION / 100000 is the major version 00026 */ 00027 00028 #define ADOBE_VERSION_MAJOR 1 00029 #define ADOBE_VERSION_MINOR 0 00030 #define ADOBE_VERSION_SUBMINOR 43 00031 00032 #define ADOBE_VERSION (ADOBE_VERSION_MAJOR * 100000 + ADOBE_VERSION_MINOR * 100 + ADOBE_VERSION_SUBMINOR) 00033 00034 /*************************************************************************************************/ 00035 00036 #define ADOBE_IS_DEPRECATED_ERROR(version) \ 00037 ((ADOBE_VERSION - version) > 0 || defined(ADOBE_NO_DEPRECATED)) 00038 00039 /*************************************************************************************************/ 00040 00041 // Big thanks to Boost here for doing a majority of the work for us. 00042 00043 #if defined(__CYGWIN__) 00044 // Cygwin is not Win32 00045 #define ADOBE_PLATFORM_CYGWIN 1 00046 00047 #elif defined(BOOST_WINDOWS) || defined(__MINGW32__) 00048 // Win32 00049 #define ADOBE_PLATFORM_WIN 1 00050 00051 #elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) 00052 // MacOS 00053 #define ADOBE_PLATFORM_MAC 1 00054 00055 #elif defined(__BEOS__) 00056 // BeOS 00057 #define ADOBE_PLATFORM_BEOS 1 00058 00059 #elif defined(__IBMCPP__) 00060 // IBM 00061 #define ADOBE_PLATFORM_AIX 1 00062 00063 #elif defined(__amigaos__) 00064 // AmigaOS 00065 #define ADOBE_PLATFORM_AMIGA 1 00066 00067 #elif defined(sun) || defined(__sun) 00068 // Solaris 00069 #define ADOBE_PLATFORM_SOLARIS 1 00070 00071 #elif defined(__sgi) 00072 // SGI Irix 00073 #define ADOBE_PLATFORM_IRIX 1 00074 00075 #elif defined(__hpux) 00076 // HP Unix 00077 #define ADOBE_PLATFORM_HPUX 1 00078 00079 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) 00080 // BSD 00081 #define ADOBE_PLATFORM_BSD 1 00082 00083 #elif defined(linux) || defined(__linux) || defined(__linux__) 00084 // Linux 00085 #define ADOBE_PLATFORM_LINUX 1 00086 00087 #elif defined(unix) || defined(__unix) || defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE) 00088 // Generic Unix 00089 #define ADOBE_PLATFORM_UNIX 1 00090 00091 #else 00092 // Unknown 00093 #error "Unknown platform - please configure and report the results to stlab.adobe.com" 00094 00095 #endif 00096 00097 /*************************************************************************************************/ 00098 00099 #include <adobe/config/select_compiler.hpp> 00100 00101 /*************************************************************************************************/ 00102 00103 #endif 00104 00105 /*************************************************************************************************/ |