mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
semantic fixes for not including headers directly
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user