mirror of
https://github.com/encounter/bfbb.git
synced 2026-07-09 18:19:36 -07:00
* 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
61 lines
1.2 KiB
C
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
|