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

- File List

# Machine.h

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