Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
Types.h
1/* Renegade Scripts.dll
2 Copyright 2013 Tiberian Technologies
3
4 This file is part of the Renegade scripts.dll
5 The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2, or (at your option) any later
8 version. See the file COPYING for more details.
9 In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
10 Only the source code to the module(s) containing the licenced code has to be released.
11*/
12#ifndef TT_INCLUDE__TYPES_H
13#define TT_INCLUDE__TYPES_H
14
15// fixed-size types
16
17#if defined(_MSC_VER) // Microsoft Visual Studio
18
19 typedef unsigned __int64 uint64;
20 typedef signed __int64 sint64;
21 typedef unsigned __int32 uint32;
22 typedef signed __int32 sint32;
23 typedef unsigned __int16 uint16;
24 typedef signed __int16 sint16;
25 typedef unsigned __int8 uint8;
26 typedef signed __int8 sint8;
27
28#elif defined(__GNUC__) // GNU C++
29
30 typedef unsigned long long uint64;
31 typedef signed long long sint64;
32 typedef unsigned int uint32;
33 typedef signed int sint32;
34 typedef unsigned short uint16;
35 typedef signed short sint16;
36 typedef unsigned char uint8;
37 typedef signed char sint8;
38
39#else
40# error Unknown compiler. Please specify fixed-size integer types in 'Types.h'.
41#endif
42
43
44typedef uint8 byte;
45
46// we compile 32 bit only
47typedef sint32 sint;
48typedef uint32 uint;
49
50
51#endif