diff options
author | Bad Diode <bd@badd10de.dev> | 2024-06-29 13:59:53 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-06-29 13:59:53 +0200 |
commit | 5ad13b02773735b66e5fc1f78252548fae124c93 (patch) | |
tree | d10e1be923fe27d5dff774793fe7e91ab2630522 | |
parent | cd32443a1a740565a49fa40c6dec968549969471 (diff) | |
download | bdl-5ad13b02773735b66e5fc1f78252548fae124c93.tar.gz bdl-5ad13b02773735b66e5fc1f78252548fae124c93.zip |
Return to c11 std
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/badlib.h | 5 |
2 files changed, 1 insertions, 6 deletions
@@ -26,7 +26,7 @@ BIN := $(BUILD_DIR)/$(TARGET) | |||
26 | 26 | ||
27 | # Compiler and linker configuration. | 27 | # Compiler and linker configuration. |
28 | CC := cc | 28 | CC := cc |
29 | CFLAGS := -Wall -Wextra -std=gnu11 -DBIN_NAME=\"$(TARGET)\" | 29 | CFLAGS := -Wall -Wextra -std=c11 -DBIN_NAME=\"$(TARGET)\" |
30 | CFLAGS += $(INC_FLAGS) | 30 | CFLAGS += $(INC_FLAGS) |
31 | LDFLAGS := -lm | 31 | LDFLAGS := -lm |
32 | LDLIBS := | 32 | LDLIBS := |
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 | ||
1240 | void | ||
1241 | platform_sleep(size_t microseconds) { | ||
1242 | usleep(microseconds); | ||
1243 | } | ||
1244 | |||
1245 | sz | 1240 | sz |
1246 | platform_time(void) { | 1241 | platform_time(void) { |
1247 | struct timespec ts; | 1242 | struct timespec ts; |