12#ifndef VRPN_IGNORE_NO_CPLUSPLUS
13#error Need to compile with a C++ compiler, not a C compiler. The problem is that in Windows, filenames are case-insensitive. So the compiler cannot tell mumble.c from mumble.C. Visual Studio decided to make .cpp (which used to mean run the C preprocessor) mean C++ and both .c and .C mean C. The other problem is that when you insert a new file into a project, it FOR THAT FILE makes an override. The project settings say C++ but if you right-click on the file itself it has an override to compile with C. This needs to be changed for both the .C file and the .h file.
34typedef char vrpn_int8;
35typedef unsigned char vrpn_uint8;
36typedef short vrpn_int16;
37typedef unsigned short vrpn_uint16;
38typedef int vrpn_int32;
39typedef unsigned int vrpn_uint32;
40typedef float vrpn_float32;
41typedef double vrpn_float64;
46typedef char vrpn_int8;
47typedef unsigned char vrpn_uint8;
48typedef short vrpn_int16;
49typedef unsigned short vrpn_uint16;
50typedef int vrpn_int32;
51typedef unsigned int vrpn_uint32;
52typedef float vrpn_float32;
53typedef double vrpn_float64;
59#define VRPN_ARCH __hpux
60typedef char vrpn_int8;
61typedef unsigned char vrpn_uint8;
62typedef short vrpn_int16;
63typedef unsigned short vrpn_uint16;
64typedef int vrpn_int32;
65typedef unsigned int vrpn_uint32;
66typedef float vrpn_float32;
67typedef double vrpn_float64;
71#define VRPN_ARCH sparc
72typedef char vrpn_int8;
73typedef unsigned char vrpn_uint8;
74typedef short vrpn_int16;
75typedef unsigned short vrpn_uint16;
76typedef int vrpn_int32;
77typedef unsigned int vrpn_uint32;
78typedef float vrpn_float32;
79typedef double vrpn_float64;
83#define VRPN_ARCH linux
84typedef char vrpn_int8;
85typedef unsigned char vrpn_uint8;
86typedef short vrpn_int16;
87typedef unsigned short vrpn_uint16;
88typedef int vrpn_int32;
89typedef unsigned int vrpn_uint32;
90typedef float vrpn_float32;
91typedef double vrpn_float64;
96typedef char vrpn_int8;
97typedef unsigned char vrpn_uint8;
98typedef short vrpn_int16;
99typedef unsigned short vrpn_uint16;
100typedef int vrpn_int32;
101typedef unsigned int vrpn_uint32;
102typedef float vrpn_float32;
103typedef double vrpn_float64;
117#define VRPN_ARCH _WIN32
118typedef char vrpn_int8;
119typedef unsigned char vrpn_uint8;
120typedef short vrpn_int16;
121typedef unsigned short vrpn_uint16;
122typedef int vrpn_int32;
123typedef unsigned int vrpn_uint32;
124typedef float vrpn_float32;
125typedef double vrpn_float64;
128#if defined(FreeBSD) || defined(__FreeBSD__)
132#define VRPN_ARCH FreeBSD
133typedef char vrpn_int8;
134typedef unsigned char vrpn_uint8;
135typedef short vrpn_int16;
136typedef unsigned short vrpn_uint16;
137typedef int vrpn_int32;
138typedef unsigned int vrpn_uint32;
139typedef float vrpn_float32;
140typedef double vrpn_float64;
144#define VRPN_ARCH MacOSX
145typedef char vrpn_int8;
146typedef unsigned char vrpn_uint8;
147typedef short vrpn_int16;
148typedef unsigned short vrpn_uint16;
149typedef int vrpn_int32;
150typedef unsigned int vrpn_uint32;
151typedef float vrpn_float32;
152typedef double vrpn_float64;
158#define VRPN_ARCH _WIN32
159typedef char vrpn_int8;
160typedef unsigned char vrpn_uint8;
161typedef short vrpn_int16;
162typedef unsigned short vrpn_uint16;
163typedef int vrpn_int32;
164typedef unsigned int vrpn_uint32;
165typedef float vrpn_float32;
166typedef double vrpn_float64;
171#error Need to define architecture-dependent sizes in this file
183typedef vrpn_int16 vrpn_bool;
185const vrpn_int16 vrpn_true = 1;
186const vrpn_int16 vrpn_false = 0;
187const vrpn_int16 vrpn_TRUE = 1;
188const vrpn_int16 vrpn_FALSE = 0;
189const vrpn_int16 VRPN_TRUE = 1;
190const vrpn_int16 VRPN_FALSE = 0;