2024-05-02 16:52:06 +00:00
|
|
|
#ifndef __TYPES_H__
|
|
|
|
#define __TYPES_H__
|
|
|
|
|
|
|
|
#include <exec/types.h>
|
|
|
|
|
2024-09-19 17:03:46 +00:00
|
|
|
/**
|
|
|
|
* Get the offset from the beginning of a struct. Useful for building
|
|
|
|
* references to custom chip registers dynamically for copperlists.
|
|
|
|
*
|
|
|
|
* @see Custom
|
|
|
|
*/
|
|
|
|
#define offsetof(s, m) &((struct s *)0)->m
|
|
|
|
|
2024-05-02 16:52:06 +00:00
|
|
|
typedef unsigned short color_t;
|
2024-05-29 11:57:08 +00:00
|
|
|
typedef unsigned long uint32_t;
|
2024-05-02 16:52:06 +00:00
|
|
|
typedef unsigned short uint16_t;
|
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
typedef signed char int8_t;
|
|
|
|
|
|
|
|
#endif
|