Go to the documentation of this file.
31 #ifndef PNGPP_CONFIG_HPP_INCLUDED
32 #define PNGPP_CONFIG_HPP_INCLUDED
35 #if defined(__GLIBC__)
39 #elif defined(__WIN32)
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 #error Byte-order could not be detected.
61 #endif // PNGPP_CONFIG_HPP_INCLUDED