aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-06-29 13:59:53 +0200
committerBad Diode <bd@badd10de.dev>2024-06-29 13:59:53 +0200
commit5ad13b02773735b66e5fc1f78252548fae124c93 (patch)
treed10e1be923fe27d5dff774793fe7e91ab2630522
parentcd32443a1a740565a49fa40c6dec968549969471 (diff)
downloadbdl-5ad13b02773735b66e5fc1f78252548fae124c93.tar.gz
bdl-5ad13b02773735b66e5fc1f78252548fae124c93.zip
Return to c11 std
-rw-r--r--Makefile2
-rw-r--r--src/badlib.h5
2 files changed, 1 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 97a1814..83dc56d 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ BIN := $(BUILD_DIR)/$(TARGET)
26 26
27# Compiler and linker configuration. 27# Compiler and linker configuration.
28CC := cc 28CC := cc
29CFLAGS := -Wall -Wextra -std=gnu11 -DBIN_NAME=\"$(TARGET)\" 29CFLAGS := -Wall -Wextra -std=c11 -DBIN_NAME=\"$(TARGET)\"
30CFLAGS += $(INC_FLAGS) 30CFLAGS += $(INC_FLAGS)
31LDFLAGS := -lm 31LDFLAGS := -lm
32LDLIBS := 32LDLIBS :=
diff --git a/src/badlib.h b/src/badlib.h
index c47f2b9..73e03db 100644
--- a/src/badlib.h
+++ b/src/badlib.h
@@ -1237,11 +1237,6 @@ Allocator os_allocator = {
1237 .free = platform_free, 1237 .free = platform_free,
1238}; 1238};
1239 1239
1240void
1241platform_sleep(size_t microseconds) {
1242 usleep(microseconds);
1243}
1244
1245sz 1240sz
1246platform_time(void) { 1241platform_time(void) {
1247 struct timespec ts; 1242 struct timespec ts;