18b52a31eSHanoh Haim/*
28b52a31eSHanoh HaimCopyright (c) 2015-2015 Cisco Systems, Inc.
38b52a31eSHanoh Haim
48b52a31eSHanoh HaimLicensed under the Apache License, Version 2.0 (the "License");
58b52a31eSHanoh Haimyou may not use this file except in compliance with the License.
68b52a31eSHanoh HaimYou may obtain a copy of the License at
78b52a31eSHanoh Haim
88b52a31eSHanoh Haim    http://www.apache.org/licenses/LICENSE-2.0
98b52a31eSHanoh Haim
108b52a31eSHanoh HaimUnless required by applicable law or agreed to in writing, software
118b52a31eSHanoh Haimdistributed under the License is distributed on an "AS IS" BASIS,
128b52a31eSHanoh HaimWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
138b52a31eSHanoh HaimSee the License for the specific language governing permissions and
148b52a31eSHanoh Haimlimitations under the License.
158b52a31eSHanoh Haim*/
168b52a31eSHanoh Haim
178b52a31eSHanoh Haim#ifndef OS_ENV
188b52a31eSHanoh Haim#define OS_ENV
198b52a31eSHanoh Haim
208b52a31eSHanoh Haim#ifdef __GNUC__
218b52a31eSHanoh Haim    #if  (_BYTE_ORDER == _BIG_ENDIAN)
228b52a31eSHanoh Haim      #define  BIG_EDIAN
238b52a31eSHanoh Haim    #else
248b52a31eSHanoh Haim      #undef  BIG_EDIAN
258b52a31eSHanoh Haim    #endif
268b52a31eSHanoh Haim#endif
278b52a31eSHanoh Haim
288b52a31eSHanoh Haim#ifdef _MSC_VER
298b52a31eSHanoh Haim     #define BYTE_ORDER
308b52a31eSHanoh Haim     #undef BIG_EDIAN
318b52a31eSHanoh Haim#endif
328b52a31eSHanoh Haim
338b52a31eSHanoh Haim
348b52a31eSHanoh Haim#endif
35