1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-22 10:16:39 +00:00

Upgrade C standard to C23.

This commit is contained in:
Pablo Curiel 2024-10-08 00:57:49 +02:00
parent f7d6eaf73f
commit 7b36fddf33
3 changed files with 3 additions and 1 deletions

View file

@ -100,6 +100,7 @@ CFLAGS += -DBUILD_TIMESTAMP="\"${BUILD_TIMESTAMP}\"" -DBOREALIS_RESOURCES="\"${
CFLAGS += -fmacro-prefix-map=$(ROOTDIR)=
CXXFLAGS := $(CFLAGS) -std=c++20
CFLAGS += -std=c23
ASFLAGS := -g $(ARCH)
LDFLAGS := -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)

View file

@ -31,6 +31,7 @@
#include <string.h>
#include <stddef.h>
#include <stdarg.h>
#include <stdbool.h>
#include <malloc.h>
#include <errno.h>
#include <ctype.h>

View file

@ -46,7 +46,7 @@ struct json_object *jsonParseFromString(const char *str, size_t size)
if (!str || !*str)
{
LOG_MSG_ERROR("Invalid parameters!");
return false;
return NULL;
}
/* Calculate string size if it wasn't provided. */