Browse Source

endian.h for different platforms

pull/59/head
orignal 11 years ago
parent
commit
8d3fcff5c5
  1. 6
      I2PEndian.h

6
I2PEndian.h

@ -1,8 +1,12 @@ @@ -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…
Cancel
Save