forked from cms-externals/frontier_client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfn-endian.h
35 lines (32 loc) · 771 Bytes
/
fn-endian.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* frontier client endian header
*
* Author: Dave Dykstra
*
* $Id$
*
* Copyright (c) 2009, FERMI NATIONAL ACCELERATOR LABORATORY
* All rights reserved.
*
* For details of the Fermitools (BSD) license see Fermilab-2009.txt or
* http://fermitools.fnal.gov/about/terms.html
*
*/
#ifndef __HEADER_H_FN_ENDIAN_H
#define __HEADER_H_FN_ENDIAN_H
/* __BIG_ENDIAN__ or __LITTLE_ENDIAN__ are predefined on Mac OSX
and endian.h doesn't exist there */
#ifdef __BIG_ENDIAN__
#define __BIG_ENDIAN 4321
#define __LITTLE_ENDIAN 1234
#define __BYTE_ORDER __BIG_ENDIAN
#else
#ifdef __LITTLE_ENDIAN__
#define __BIG_ENDIAN 4321
#define __LITTLE_ENDIAN 1234
#define __BYTE_ORDER __LITTLE_ENDIAN
#else
#include <endian.h>
#endif
#endif
#endif /*__HEADER_H_FN_ENDIAN_H*/