GEOS  3.8.0dev
Machine.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2001-2009 Vivid Solutions Inc.
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************/
14 #ifndef GEOS_UTIL_MACHINE_H_INCLUDED
15 #define GEOS_UTIL_MACHINE_H_INCLUDED
16 
21 inline int
22 getMachineByteOrder()
23 {
24  static int endian_check = 1; // don't modify !!
25  return *((char*)&endian_check);
26 }
27 
28 #endif