Go to the documentation of this file.
31#ifndef PNGPP_CONFIG_HPP_INCLUDED
32#define PNGPP_CONFIG_HPP_INCLUDED
43#define __LITTLE_ENDIAN 1234
44#define __BIG_ENDIAN 4321
45#define __BYTE_ORDER __LITTLE_ENDIAN
47#elif defined(__APPLE__)
49#include <machine/endian.h>
50#include <sys/_endian.h>
52#elif defined(__FreeBSD__)
54#include <machine/endian.h>
55#include <sys/endian.h>
59#include <sys/isa_defs.h>
63#error Byte-order could not be detected.
68#if defined(__GNUC__) && defined(__GNUC_MINOR__) && defined(__GNUC_PATCHLEVEL__) && defined(__GXX_EXPERIMENTAL_CXX0X__)
70#define PNGPP_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
75#if (PNGPP_GCC_VERSION >= 40300)
76#define PNGPP_HAS_STATIC_ASSERT
80#if (PNGPP_GCC_VERSION >= 40600)
81#define PNGPP_HAS_STD_MOVE
84#undef PNGPP_GCC_VERSION
86#elif defined(_MSC_VER)
91#define PNGPP_HAS_STATIC_ASSERT
92#define PNGPP_HAS_STD_MOVE