diff options
Diffstat (limited to 'usr')
| -rw-r--r-- | usr/sdk/inc/sdk/types.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/usr/sdk/inc/sdk/types.h b/usr/sdk/inc/sdk/types.h new file mode 100644 index 0000000..12dd6e6 --- /dev/null +++ b/usr/sdk/inc/sdk/types.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2025, Ian Moffett. + * Provided under the BSD-3 clause. + */ + +#ifndef _SDK_TYPES_H_ +#define _SDK_TYPES_H_ 1 + +#define NULL ((void *)0) + +#ifndef true +#define true 1 +#endif /* !true */ + +#ifndef false +#define false 0 +#endif /* !false */ + +/* Boolean type */ +typedef _Bool BOOL; + +/* Signed types */ +typedef char BYTE; +typedef short SHORT; +typedef int LONG; +typedef long long QUAD; +typedef QUAD SSIZE; + +/* Unsigned types */ +typedef unsigned char UBYTE; +typedef unsigned short USHORT; +typedef unsigned int ULONG; +typedef unsigned long long UQUAD; +typedef UQUAD USIZE; + +#endif /* !_SDK_TYPES_H_ */ |
