Fixed merge/rebase issues

This commit is contained in:
Nicholas Estelami 2022-07-31 14:50:28 -04:00
parent 3bb234e6a6
commit 9d12813282

View File

@ -1,8 +1,14 @@
#ifndef COLOR_H #ifndef COLOR_H
#define COLOR_H #define COLOR_H
#include <stdint.h>
#include "endianness.h" #include "endianness.h"
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct { typedef struct {
uint8_t r, g, b; uint8_t r, g, b;
} Color_RGB8; } Color_RGB8;
@ -15,9 +21,9 @@ typedef struct {
typedef union { typedef union {
struct { struct {
#ifdef IS_BIGENDIAN #ifdef IS_BIGENDIAN
u8 r, g, b, a; uint8_t r, g, b, a;
#else #else
u8 a, b, g, r; uint8_t a, b, g, r;
#endif #endif
}; };
uint32_t rgba; uint32_t rgba;