Machine.h

00001 /**********************************************************************
00002  *
00003  * GEOS - Geometry Engine Open Source
00004  * http://geos.osgeo.org
00005  *
00006  * Copyright (C) 2001-2009 Vivid Solutions Inc.
00007  *
00008  * This is free software; you can redistribute and/or modify it under
00009  * the terms of the GNU Lesser General Public Licence as published
00010  * by the Free Software Foundation. 
00011  * See the COPYING file for more information.
00012  *
00013  **********************************************************************/
00014 #ifndef GEOS_UTIL_MACHINE_H_INCLUDED
00015 #define GEOS_UTIL_MACHINE_H_INCLUDED
00016 
00021 inline int getMachineByteOrder()
00022 {
00023         static int endian_check = 1; // don't modify !!
00024         return *((char *)&endian_check);
00025 }
00026 
00027 #endif

Generated on 10 Sep 2013 for GEOS by  doxygen 1.4.7