VR-Link API Documentation for HLA Evolved
vlMachineTypes.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
8 #pragma once
9 
10 #if VXWORKS
11 #include <vxworks.h>
12 #endif
13 
14 #ifndef VLCONFIG_INCLUDED_H_
15 #include "vlConfig.h"
16 #endif
17 #include "vlVersion.h"
18 
19 /* defined(__cplusplus), not __cplusplus,
20  * because __SUNPRO_CC defines it to be empty */
21 #if DT_HAVE_STD_H && defined(__cplusplus)
22 #include <std.h>
23 #endif
24 
25 #include <sys/types.h>
26 
30 #define DtBoolean bool
31 
35 #define DtFalse false
36 
40 #define DtTrue true
41 
42 /* Windows requires extra work to export from DLLs */
43 #if DT_NEED_DLL_DECLARATIONS
44 
45 #ifdef DT_DLL_MTL
46 #undef DT_DLL_MTL
47 #define DT_DLL_MTL __declspec( dllexport )
48 #else
49 #define DT_DLL_MTL __declspec( dllimport )
50 #endif
51 
52 #ifdef DT_DLL_MATRIX
53 #undef DT_DLL_MATRIX
54 #define DT_DLL_MATRIX __declspec( dllexport )
55 #else
56 #define DT_DLL_MATRIX __declspec( dllimport )
57 #endif
58 
59 #ifdef DT_DLL_VL
60 #undef DT_DLL_VL
61 #define DT_DLL_VL __declspec( dllexport )
62 #else
63 #define DT_DLL_VL __declspec( dllimport )
64 #endif
65 
66 #ifdef DT_DLL_VLPROTIND
67 #undef DT_DLL_VLPROTIND
68 #define DT_DLL_VLPROTIND __declspec( dllexport )
69 #else
70 #define DT_DLL_VLPROTIND __declspec( dllimport )
71 #endif
72 
73 #ifdef DT_DLL_NETCOMPAT
74 #undef DT_DLL_NETCOMPAT
75 #define DT_DLL_NETCOMPAT __declspec( dllexport )
76 #else
77 #define DT_DLL_NETCOMPAT __declspec( dllimport )
78 #endif
79 
80 #ifdef DT_DLL_VLUTIL
81 #undef DT_DLL_VLUTIL
82 #define DT_DLL_VLUTIL __declspec( dllexport )
83 #else
84 #define DT_DLL_VLUTIL __declspec( dllimport )
85 #endif
86 
87 #else /* Default -- Unix or Win32 static */
88 
89 #if defined _WIN32 || defined __CYGWIN__
90 #define DT_DLL_MTL
91 #define DT_DLL_MATRIX
92 #define DT_DLL_VL
93 #define DT_DLL_VLUTIL
94 #define DT_DLL_VLPROTIND
95 #define DT_DLL_NETCOMPAT
96 #else
97 #if __GNUC__ >= 4
98 #define DT_DLL_MTL
99 #define DT_DLL_MATRIX
100 #define DT_DLL_VL
101 #define DT_DLL_VLUTIL __attribute__ ((visibility ("default")))
102 #define DT_DLL_VLPROTIND
103 #define DT_DLL_NETCOMPAT
104 #else
105 #define DT_DLL_MTL
106 #define DT_DLL_MATRIX
107 #define DT_DLL_VL
108 #define DT_DLL_VLUTIL
109 #define DT_DLL_VLPROTIND
110 #define DT_DLL_NETCOMPAT
111 #endif
112 #endif
113 
114 #endif
115 
116 #ifdef _WIN32
117 #if __cplusplus
118 extern "C"
119 {
120  DT_DLL_VLUTIL int getopt(int argc, char** argv, char* opts);
121  extern DT_DLL_VLUTIL char* optarg;
122  extern DT_DLL_VLUTIL int optind;
123  extern DT_DLL_VLUTIL int opterr;
124 }
125 #endif //__cplusplus
126 #endif //_WIN32
127 
128 #if __cplusplus
129 #ifdef DtUSE_UTILITIES_NAMESPACE
130 namespace DtUSE_UTILITIES_NAMESPACE
131 {
132 #endif
133 #endif
134 
135 typedef unsigned char DtU8;
136 
138 typedef unsigned short DtU16;
139 
140 #if DT_HAVE_64BIT_LONGS
141 
143 typedef unsigned int DtU32;
144 
146 typedef int DtInt32;
147 
148 #else
149 
151 typedef unsigned long DtU32;
152 
154 typedef long int DtInt32;
155 
156 #endif
157 
159 #if DT_HAVE_64BIT_LONGS
160 
162 typedef unsigned long DtU64;
163 
165 typedef long DtInt64;
166 
168 typedef DtU64 DtMachineSize;
169 
170 #else
171 
174 
175 #ifdef _WIN32
176 
178 typedef unsigned _int64 DtU64;
179 
181 typedef _int64 DtInt64;
182 
183 #else
184 
186 typedef unsigned long long DtU64;
187 
189 typedef long long DtInt64;
190 
191 #endif
192 #endif
193 
195 typedef char DtInt8;
196 
198 typedef short int DtInt16;
199 
201 typedef float DtFloat32;
202 
204 typedef double DtFloat64;
205 
207 typedef DtFloat64 DtReal;
208 
209 #if __cplusplus
210 #ifdef DtUSE_UTILITIES_NAMESPACE
211 }
212 #endif
213 #endif
214 
215 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)