1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-09 09:35:13 +00:00
QB64-PE/internal/c/os.h

28 lines
631 B
C
Raw Normal View History

#include "libqb-common.h"
2021-08-18 12:07:40 +00:00
/* common types (not quite an include guard, but allows an including
2022-05-06 04:02:21 +00:00
* file to not have these included.
*
* Should this be adapted to check for each type before defining?
*/
#ifndef QB64_OS_H_NO_TYPES
# define int64 int64_t
# define int32 int32_t
# define int16 int16_t
# define int8 int8_t
# define uint64 uint64_t
# define uint32 uint32_t
# define uint16 uint16_t
# define uint8 uint8_t
2022-05-06 04:02:21 +00:00
# define ptrszint intptr_t
# define uptrszint uintptr_t
2022-05-06 04:02:21 +00:00
# ifdef QB64_64
# define ptrsz 8
# else
# define ptrsz 4
# endif
#endif