gnsstkplatform.h
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 //==============================================================================
26 //
27 // This software was developed by Applied Research Laboratories at the
28 // University of Texas at Austin, under contract to an agency or agencies
29 // within the U.S. Department of Defense. The U.S. Government retains all
30 // rights to use, duplicate, distribute, disclose, or release this software.
31 //
32 // Pursuant to DoD Directive 523024
33 //
34 // DISTRIBUTION STATEMENT A: This software has been approved for public
35 // release, distribution is unlimited.
36 //
37 //==============================================================================
38 
39 /* This is where all platform specific includes, defines and crud should go.
40  Unless, of course, it has to go somewhere else. :-)
41 */
42 
43 #ifndef GNSSTK_GNSSTKPLATFORM_H
44 #define GNSSTK_GNSSTKPLATFORM_H
45 
46 #ifdef _MSC_VER
47 
48 #include <cstdlib>
49 
50 #define HAVE_STRING_H 1
51 #define STDC_HEADERS 1
52 
53 // To get rid of 'stdint.h' for Microsoft visual studio
54 #if (_MSC_VER < 1300)
55  typedef signed char int8_t;
56  typedef signed short int16_t;
57  typedef signed int int32_t;
58  typedef unsigned char uint8_t;
59  typedef unsigned short uint16_t;
60  typedef unsigned int uint32_t;
61  typedef signed __int64 int64_t;
62  typedef unsigned __int64 uint64_t;
63 #elif(_MSC_VER <= 1500)
64  typedef signed __int8 int8_t;
65  typedef signed __int16 int16_t;
66  typedef signed __int32 int32_t;
67  typedef unsigned __int8 uint8_t;
68  typedef unsigned __int16 uint16_t;
69  typedef unsigned __int32 uint32_t;
70  typedef signed __int64 int64_t;
71  typedef unsigned __int64 uint64_t;
72 #else
73  #include <stdint.h>
74 #endif
75 
76 //#include <sys/types.h>
77 #include <sys/timeb.h>
78 
79 #elif defined __SUNPRO_CC
80 
81 #include <sys/types.h>
82 #include <sys/timeb.h>
83 
84 #else
85 
86 #include <stdint.h>
87 
88 #endif // _MSC_VER
89 
90 #endif // GNSSTK_GNSSTKPLATFORM_H


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39