fix doc example typo
[boost.git] / boost / gil / gil_config.hpp
blob9e20b2f1c883384a509c33c52df2828741f3f555
1 /*
2 Copyright 2005-2007 Adobe Systems Incorporated
4 Use, modification and distribution are subject to the Boost Software License,
5 Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt).
8 See http://opensource.adobe.com/gil for most recent version including documentation.
9 */
11 /*************************************************************************************************/
13 #ifndef GIL_CONFIG_HPP
14 #define GIL_CONFIG_HPP
16 ////////////////////////////////////////////////////////////////////////////////////////
17 /// \file
18 /// \brief GIL configuration file
19 /// \author Lubomir Bourdev and Hailin Jin \n
20 /// Adobe Systems Incorporated
21 ///
22 ////////////////////////////////////////////////////////////////////////////////////////
24 #include <boost/config.hpp>
26 #define GIL_VERSION "2.1.2"
28 #ifdef _DEBUG
29 # define GIL_FORCEINLINE inline
30 #else
31 #ifdef NDEBUG
32 #if defined(_MSC_VER)
33 # define GIL_FORCEINLINE __forceinline
34 #elif defined(__GNUC__) && __GNUC__ > 3
35 # define GIL_FORCEINLINE inline __attribute__ ((always_inline))
36 #else
37 # define GIL_FORCEINLINE inline
38 #endif
39 #else
40 # define GIL_FORCEINLINE inline
41 #endif
42 #endif
44 // Enable GIL_NONWORD_POINTER_ALIGNMENT_SUPPORTED if your platform supports dereferencing on non-word memory boundary.
45 // Enabling the flag results in performance improvement
46 #if !defined(__hpux) && !defined(sun) && !defined(__sun) && !defined(__osf__)
47 #define GIL_NONWORD_POINTER_ALIGNMENT_SUPPORTED
48 #endif
50 #endif