Chris@16: /* Chris@16: Copyright 2005-2007 Adobe Systems Incorporated Chris@16: Chris@16: Use, modification and distribution are subject to the Boost Software License, Chris@16: Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: http://www.boost.org/LICENSE_1_0.txt). Chris@16: Chris@16: See http://opensource.adobe.com/gil for most recent version including documentation. Chris@16: */ Chris@16: Chris@16: /*************************************************************************************************/ Chris@16: Chris@16: #ifndef GIL_CONFIG_HPP Chris@16: #define GIL_CONFIG_HPP Chris@16: Chris@16: //////////////////////////////////////////////////////////////////////////////////////// Chris@16: /// \file Chris@16: /// \brief GIL configuration file Chris@16: /// \author Lubomir Bourdev and Hailin Jin \n Chris@16: /// Adobe Systems Incorporated Chris@16: /// Chris@16: //////////////////////////////////////////////////////////////////////////////////////// Chris@16: Chris@16: #include Chris@16: Chris@16: #define GIL_VERSION "2.1.2" Chris@16: Chris@16: #ifdef _DEBUG Chris@16: # define GIL_FORCEINLINE inline Chris@16: #else Chris@16: #ifdef NDEBUG Chris@16: #if defined(_MSC_VER) Chris@16: # define GIL_FORCEINLINE __forceinline Chris@16: #elif defined(__GNUC__) && __GNUC__ > 3 Chris@16: # define GIL_FORCEINLINE inline __attribute__ ((always_inline)) Chris@16: #else Chris@16: # define GIL_FORCEINLINE inline Chris@16: #endif Chris@16: #else Chris@16: # define GIL_FORCEINLINE inline Chris@16: #endif Chris@16: #endif Chris@16: Chris@16: // Enable GIL_NONWORD_POINTER_ALIGNMENT_SUPPORTED if your platform supports dereferencing on non-word memory boundary. Chris@16: // Enabling the flag results in performance improvement Chris@16: #if !defined(__hpux) && !defined(sun) && !defined(__sun) && !defined(__osf__) Chris@16: #define GIL_NONWORD_POINTER_ALIGNMENT_SUPPORTED Chris@16: #endif Chris@16: Chris@16: #endif