mirror of
https://github.com/sheumann/AFPBridge.git
synced 2024-11-01 01:05:06 +00:00
21 lines
328 B
C
21 lines
328 B
C
#ifndef ENDIAN_H
|
|
#define ENDIAN_H
|
|
|
|
#include <types.h>
|
|
|
|
/*
|
|
* Undefine these in case they're defined as macros.
|
|
* (In particular, GNO has broken macro definitions for these.)
|
|
*/
|
|
#undef htons
|
|
#undef ntohs
|
|
#undef htonl
|
|
#undef ntohl
|
|
|
|
Word htons(Word);
|
|
Word ntohs(Word);
|
|
LongWord htonl(LongWord);
|
|
LongWord ntohl(LongWord);
|
|
|
|
#endif
|