Go to the documentation of this file.
31 #ifndef PNGPP_CONFIG_HPP_INCLUDED
32 #define PNGPP_CONFIG_HPP_INCLUDED
35 #if defined(__GLIBC__)
41 #define __LITTLE_ENDIAN 1234
42 #define __BIG_ENDIAN 4321
43 #define __BYTE_ORDER __LITTLE_ENDIAN
45 #elif defined(__APPLE__)
47 #include <machine/endian.h>
48 #include <sys/_endian.h>
50 #elif defined(__FreeBSD__)
52 #include <machine/endian.h>
53 #include <sys/endian.h>
57 #include <sys/isa_defs.h>
61 #error Byte-order could not be detected.
66 #if defined(__GNUC__) && defined(__GNUC_MINOR__) && defined(__GNUC_PATCHLEVEL__) && defined(__GXX_EXPERIMENTAL_CXX0X__)
68 #define PNGPP_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
73 #if (PNGPP_GCC_VERSION >= 40300)
74 #define PNGPP_HAS_STATIC_ASSERT
78 #if (PNGPP_GCC_VERSION >= 40600)
79 #define PNGPP_HAS_STD_MOVE
82 #undef PNGPP_GCC_VERSION
84 #elif defined(_MSC_VER)
88 #if (_MSC_VER >= 1600)
89 #define PNGPP_HAS_STATIC_ASSERT
90 #define PNGPP_HAS_STD_MOVE
96 #endif // PNGPP_CONFIG_HPP_INCLUDED