GEOS 3.4.2

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

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 getMachineByteOrder()
22 {
23 static int endian_check = 1; // don't modify !!
24 return *((char *)&endian_check);
25 }
26
27 #endif