mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:54:01 +01:00
endian.h for different platforms
This commit is contained in:
parent
ff9f14d7a6
commit
8d3fcff5c5
|
@ -1,8 +1,12 @@
|
|||
#ifndef I2PENDIAN_H__
|
||||
#define I2PENDIAN_H__
|
||||
|
||||
#ifndef _WIN32
|
||||
#ifdef __linux__
|
||||
#include <endian.h>
|
||||
#elif __FreeBSD__
|
||||
#include <sys/endian.h>
|
||||
#elif __MACH__ // Mac OS X
|
||||
#include <machine/endian.h>
|
||||
#else
|
||||
#include <cstdint>
|
||||
|
||||
|
|
Loading…
Reference in a new issue