gfx: #undef quad
Surprisingly, esp-idf #includes files such as sys/types.h when pulling other standard header files, even when not explicitly defined. While this is not a serious issue, incredibly their sys/types.h implementation uses "#define quad", therefore breaking user code such as anything related to "struct quad".
This commit is contained in:
parent
77c4420c06
commit
52571b0f5a
|
@ -3,6 +3,8 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
#undef quad
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#undef quad
|
||||
|
||||
int quad_from_sprite(const struct sprite *const s, struct quad *const q)
|
||||
{
|
||||
return -1;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#ifndef GFX_H
|
||||
#define GFX_H
|
||||
|
||||
#include <gfx/port.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <gfx/port.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
|
|
Loading…
Reference in New Issue
Block a user