semantic fixes for not including headers directly

This commit is contained in:
2025-03-25 15:07:06 +01:00
parent 10fcb8a09a
commit 2be3132cec

View File

@@ -1,4 +1,5 @@
#pragma once
#include <features.h>
#include <time.h>
struct gametime {
@@ -7,6 +8,7 @@ struct gametime {
};
#if _POSIX_C_SOURCE >= 199309L
# include <bits/time.h>
static inline void gametime_get(struct timespec* ts) {
clock_gettime(CLOCK_MONOTONIC, ts);
}