netatalk: endian.h Source File

netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
endian.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
3 * All Rights Reserved. See COPYRIGHT.
4 *
5 * This file handles byte ordering.
6 */
7
8#ifndef _ATALK_ENDIAN_H_
9#define _ATALK_ENDIAN_H_
10
11#ifdef HAVE_CONFIG_H
12#include "config.h"
13#endif /* HAVE_CONFIG_H */
14
15#include <netinet/in.h>
16
17# ifndef BYTE_ORDER
18#define LITTLE_ENDIAN 1234
19#define BIG_ENDIAN 4321
20#define PDP_ENDIAN 3412
21
22#if defined(WORDS_BIGENDIAN) || defined(_BIG_ENDIAN)
23#define BYTE_ORDER BIG_ENDIAN
24#else
25#define BYTE_ORDER LITTLE_ENDIAN
26#endif /* WORDS_BIGENDIAN */
27
28#endif /* BYTE_ORDER */
29
30#endif /* _ATALK_ENDIAN_H_ */
config.h