Files
bfbb/include/types.h
T
Steven Casper 84856da4f3 Make source buildable (#268)
* Update old includes from p2 directory to gc

* Strip out all #pragma GLOBAL_ASM usages

* Move game src files to SB directory

* Fix broken include paths

* Add 100% matching files to build

* Update configuration to remove all relative paths in includes
2024-06-21 08:25:57 -05:00

61 lines
1.2 KiB
C

#ifndef BFBB_TYPES_H
#define BFBB_TYPES_H
// Note: only include this header inside BFBB-related headers/source code files.
// Don't include this in any RenderWare, system, bink, etc. files
#ifdef GAMECUBE
typedef char int8;
typedef short int16;
typedef int int32;
typedef long long int64;
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned int uint32;
typedef unsigned long long uint64;
typedef float float32;
typedef double float64;
typedef long long32;
typedef unsigned long ulong32;
typedef int32 bool32;
#endif
#ifdef NULL
#undef NULL
#endif
#define NULL 0
#ifdef TRUE
#undef TRUE
#endif
#define TRUE 1
#ifdef FALSE
#undef FALSE
#endif
#define FALSE 0
#ifndef __MWERKS__
#define __declspec(x)
#define asm
#endif
#define WEAK __declspec(weak)
// Creates an operator= declaration for the type T.
// This is specifically meant as a temporary fix for __as functions
// that are auto-generated by the compiler, not for __as functions that
// appear to be hand-written.
// Note: rwsdk has its own copy of this macro to avoid needing to include types.h.
#ifdef __cplusplus
#define ASSIGNMENT_OPERATOR(T) T& operator=(const T&);
#else
#define ASSIGNMENT_OPERATOR(T)
#endif
#endif