nuclear@7: #ifndef ENDIAN_H_ nuclear@7: #define ENDIAN_H_ nuclear@7: nuclear@7: #if defined(__unix__) || defined(__APPLE__) nuclear@7: #include nuclear@7: #elif defined(WIN32) nuclear@7: #include nuclear@7: #else nuclear@7: #define NO_INET nuclear@7: #include "inttypes.h" nuclear@7: nuclear@7: extern uint16_t (*ntohs)(uint16_t); nuclear@7: extern uint16_t (*htons)(uint16_t); nuclear@7: extern uint32_t (*ntohl)(uint32_t); nuclear@7: extern uint32_t (*htonl)(uint32_t); nuclear@7: #endif nuclear@7: nuclear@7: int bigendian(void); nuclear@7: nuclear@7: #endif /* ENDIAN_H_ */