Generic Image Library: gil_config.hpp Source File

Modules | Alphabetical List | Class List | Directories | File List | GIL Home Page # gil_config.hpp Go to the documentation of this file.
    00001 /*
    00002     Copyright 2005-2007 Adobe Systems Incorporated
    00003
    00004     Use, modification and distribution are subject to the Boost Software License,
    00005     Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
    00006     http://www.boost.org/LICENSE_1_0.txt).
    00007
    00008     See http://opensource.adobe.com/gil for most recent version including documentation.
    00009 */
    00010
    00011 /*************************************************************************************************/
    00012
    00013 #ifndef GIL_CONFIG_HPP
    00014 #define GIL_CONFIG_HPP
    00015
    00023
    00024 #include <boost/config.hpp>
    00025
    00026 #define GIL_VERSION "2.1.2"
    00027
    00028 #ifdef _DEBUG
    00029 #    define GIL_FORCEINLINE inline
    00030 #else
    00031 #ifdef NDEBUG
    00032 #if   defined(_MSC_VER)
    00033 #    define GIL_FORCEINLINE __forceinline
    00034 #elif defined(__GNUC__) && __GNUC__ > 3
    00035 #    define GIL_FORCEINLINE inline __attribute__ ((always_inline))
    00036 #else
    00037 #    define GIL_FORCEINLINE inline
    00038 #endif
    00039 #else
    00040 #    define GIL_FORCEINLINE inline
    00041 #endif
    00042 #endif
    00043
    00044 // Enable GIL_NONWORD_POINTER_ALIGNMENT_SUPPORTED if your platform supports dereferencing on non-word memory boundary.
    00045 // Enabling the flag results in performance improvement
    00046 #if !defined(__hpux) && !defined(sun) && !defined(__sun) && !defined(__osf__)
    00047     #define GIL_NONWORD_POINTER_ALIGNMENT_SUPPORTED
    00048 #endif
    00049
    00050 #endif