gpstkplatform.h

Go to the documentation of this file.
00001 #pragma ident "$Id: gpstkplatform.h 3341 2013-01-28 16:05:33Z btolman $"
00002 
00003 
00004 
00005 //============================================================================
00006 //
00007 //  This file is part of GPSTk, the GPS Toolkit.
00008 //
00009 //  The GPSTk is free software; you can redistribute it and/or modify
00010 //  it under the terms of the GNU Lesser General Public License as published
00011 //  by the Free Software Foundation; either version 2.1 of the License, or
00012 //  any later version.
00013 //
00014 //  The GPSTk is distributed in the hope that it will be useful,
00015 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 //  GNU Lesser General Public License for more details.
00018 //
00019 //  You should have received a copy of the GNU Lesser General Public
00020 //  License along with GPSTk; if not, write to the Free Software Foundation,
00021 //  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
00022 //  
00023 //  Copyright 2004, The University of Texas at Austin
00024 //
00025 //============================================================================
00026 
00027 
00028 
00029 
00030 /* This is where all platform specific includes, defines and crud should go.
00031    Unless, of course, it has to go somewhere else. :-)
00032 */
00033 
00034 #ifndef GPSTK_GPSTKPLATFORM_H
00035 #define GPSTK_GPSTKPLATFORM_H
00036 
00037 #ifdef _MSC_VER
00038 
00039 #include <cstdlib>
00040 
00041 #define HAVE_STRING_H 1
00042 #define STDC_HEADERS  1
00043 
00044 // To get rid of 'stdint.h' for Microsoft visual studio
00045 #if (_MSC_VER < 1300)
00046     typedef signed char       int8_t;
00047     typedef signed short      int16_t;
00048     typedef signed int        int32_t;
00049     typedef unsigned char     uint8_t;
00050     typedef unsigned short    uint16_t;
00051     typedef unsigned int      uint32_t;
00052     typedef signed __int64    int64_t;
00053     typedef unsigned __int64  uint64_t;
00054 #elif(_MSC_VER <= 1500)
00055     typedef signed __int8     int8_t;
00056     typedef signed __int16    int16_t;
00057     typedef signed __int32    int32_t;
00058     typedef unsigned __int8   uint8_t;
00059     typedef unsigned __int16  uint16_t;
00060     typedef unsigned __int32  uint32_t;
00061     typedef signed __int64    int64_t;
00062     typedef unsigned __int64  uint64_t;
00063 #else        
00064     #include <stdint.h>
00065 #endif
00066 
00067 //#include <sys/types.h>
00068 #include <sys/timeb.h>
00069 
00070 #elif defined __SUNPRO_CC
00071 
00072 #include <sys/types.h>
00073 #include <sys/timeb.h>
00074 
00075 #else   
00076 
00077 #include <stdint.h>
00078 
00079 #endif  // _MSC_VER
00080 
00081 #endif  // GPSTK_GPSTKPLATFORM_H

Generated on Tue May 21 03:31:09 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1