stlab.adobe.com Adobe Systems Incorporated
config.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2008 Adobe Systems Incorporated
3  Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
4  or a copy at http://stlab.adobe.com/licenses.html)
5 */
6 
7 /*************************************************************************************************/
8 
9 #ifndef ADOBE_CONFIG_HPP
10 #define ADOBE_CONFIG_HPP
11 
12 /*************************************************************************************************/
13 
14 #include <boost/config.hpp>
15 
16 /*************************************************************************************************/
17 
18 /*
19  Caution:
20  This is the only ASL header that is guarenteed to change with every release. Including
21  this header will cause a recompile every time a new ASL version is released.
22 
23  ADOBE_VERSION % 100 is the sub-minor version
24  ADOBE_VERSION / 100 % 1000 is the minor version
25  ADOBE_VERSION / 100000 is the major version
26 */
27 
28 #define ADOBE_VERSION_MAJOR 1
29 #define ADOBE_VERSION_MINOR 0
30 #define ADOBE_VERSION_SUBMINOR 43
31 
32 #define ADOBE_VERSION (ADOBE_VERSION_MAJOR * 100000 + ADOBE_VERSION_MINOR * 100 + ADOBE_VERSION_SUBMINOR)
33 
34 /*************************************************************************************************/
35 
36 #define ADOBE_IS_DEPRECATED_ERROR(version) \
37  ((ADOBE_VERSION - version) > 0 || defined(ADOBE_NO_DEPRECATED))
38 
39 /*************************************************************************************************/
40 
41 // Big thanks to Boost here for doing a majority of the work for us.
42 
43 #if defined(__CYGWIN__)
44  // Cygwin is not Win32
45  #define ADOBE_PLATFORM_CYGWIN 1
46 
47 #elif defined(BOOST_WINDOWS) || defined(__MINGW32__)
48  // Win32
49  #define ADOBE_PLATFORM_WIN 1
50 
51 #elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
52  // MacOS
53  #define ADOBE_PLATFORM_MAC 1
54 
55 #elif defined(__BEOS__)
56  // BeOS
57  #define ADOBE_PLATFORM_BEOS 1
58 
59 #elif defined(__IBMCPP__)
60  // IBM
61  #define ADOBE_PLATFORM_AIX 1
62 
63 #elif defined(__amigaos__)
64  // AmigaOS
65  #define ADOBE_PLATFORM_AMIGA 1
66 
67 #elif defined(sun) || defined(__sun)
68  // Solaris
69  #define ADOBE_PLATFORM_SOLARIS 1
70 
71 #elif defined(__sgi)
72  // SGI Irix
73  #define ADOBE_PLATFORM_IRIX 1
74 
75 #elif defined(__hpux)
76  // HP Unix
77  #define ADOBE_PLATFORM_HPUX 1
78 
79 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
80  // BSD
81  #define ADOBE_PLATFORM_BSD 1
82 
83 #elif defined(linux) || defined(__linux) || defined(__linux__)
84  // Linux
85  #define ADOBE_PLATFORM_LINUX 1
86 
87 #elif defined(unix) || defined(__unix) || defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE)
88  // Generic Unix
89  #define ADOBE_PLATFORM_UNIX 1
90 
91 #else
92  // Unknown
93  #error "Unknown platform - please configure and report the results to stlab.adobe.com"
94 
95 #endif
96 
97 /*************************************************************************************************/
98 
99 #include <adobe/config/select_compiler.hpp>
100 
101 /*************************************************************************************************/
102 
103 #endif
104 
105 /*************************************************************************************************/

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google