1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-08 18:47:52 +00:00

endian.h for different platforms

This commit is contained in:
orignal 2014-04-05 19:51:05 -04:00
parent ff9f14d7a6
commit 8d3fcff5c5

View File

@ -1,8 +1,12 @@
#ifndef I2PENDIAN_H__ #ifndef I2PENDIAN_H__
#define I2PENDIAN_H__ #define I2PENDIAN_H__
#ifndef _WIN32 #ifdef __linux__
#include <endian.h> #include <endian.h>
#elif __FreeBSD__
#include <sys/endian.h>
#elif __MACH__ // Mac OS X
#include <machine/endian.h>
#else #else
#include <cstdint> #include <cstdint>