switch to c23 because I'm epic
This commit is contained in:
parent
dbdbf09516
commit
37b332927c
2 changed files with 2 additions and 8 deletions
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
||||||
# Copyright (jacekpoz 2024). Licensed under the EUPL-1.2 or later.
|
# Copyright (jacekpoz 2024). Licensed under the EUPL-1.2 or later.
|
||||||
|
|
||||||
CC = clang
|
CC = clang
|
||||||
CFLAGS = -std=c11 -Wall -Wextra -Wpedantic
|
CFLAGS = -std=c23 -Wall -Wextra -Wpedantic
|
||||||
CFLAGS += -Werror -Wfloat-equal -Wshadow
|
CFLAGS += -Werror -Wfloat-equal -Wshadow
|
||||||
CFLAGS += -fPIC -fstrict-aliasing
|
CFLAGS += -fPIC -fstrict-aliasing
|
||||||
CFLAGS += $(shell pkg-config --cflags glfw3 vulkan)
|
CFLAGS += $(shell pkg-config --cflags glfw3 vulkan)
|
||||||
|
|
|
@ -11,13 +11,7 @@
|
||||||
PTK_LIST_DEFINE(bool);
|
PTK_LIST_DEFINE(bool);
|
||||||
|
|
||||||
static PtkHandle m_root_component;
|
static PtkHandle m_root_component;
|
||||||
// TODO: figure out a way to actually use bool here
|
static PTK_LIST(bool) m_update;
|
||||||
// this happens because PTK_LIST_DEFINE and PTK_LIST_NEW
|
|
||||||
// use PTK_LIST themselves, bool gets put through the first
|
|
||||||
// and turned into _Bool which is then used as the actual
|
|
||||||
// type's name; using PTK_LIST directly only processes it once
|
|
||||||
// so we have to use _Bool here
|
|
||||||
static PTK_LIST(_Bool) m_update;
|
|
||||||
|
|
||||||
typedef PTK_LIST(Vertex) Vertices;
|
typedef PTK_LIST(Vertex) Vertices;
|
||||||
typedef PTK_LIST(uint32_t) Indices;
|
typedef PTK_LIST(uint32_t) Indices;
|
||||||
|
|
Loading…
Reference in a new issue