diff options
| author | Ray <[email protected]> | 2022-05-16 19:24:16 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-05-16 19:24:16 +0200 |
| commit | 5ecc2892016cf95fc78209229627fd371bd8df01 (patch) | |
| tree | 7d7f821f164b8aa4a793fba56474732f8b8ccdaa /src | |
| parent | 020e90319388fb6e0975d2bb502d4824d369aece (diff) | |
| download | raylib-5ecc2892016cf95fc78209229627fd371bd8df01.tar.gz raylib-5ecc2892016cf95fc78209229627fd371bd8df01.zip | |
REVIEWED: Support OpneBSD for timming functions
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rcore.c b/src/rcore.c index 31a0febb..99f351ac 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -222,7 +222,7 @@ unsigned int __stdcall timeEndPeriod(unsigned int uPeriod); #endif #endif - #if defined(__linux__) || defined(__FreeBSD__) + #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) #include <sys/time.h> // Required for: timespec, nanosleep(), select() - POSIX //#define GLFW_EXPOSE_NATIVE_X11 // WARNING: Exposing Xlib.h > X.h results in dup symbols for Font type @@ -3467,7 +3467,7 @@ void OpenURL(const char *url) #if defined(_WIN32) sprintf(cmd, "explorer \"%s\"", url); #endif - #if defined(__linux__) || defined(__FreeBSD__) + #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) sprintf(cmd, "xdg-open '%s'", url); // Alternatives: firefox, x-www-browser #endif #if defined(__APPLE__) @@ -4840,7 +4840,7 @@ void WaitTime(float ms) #if defined(_WIN32) Sleep((unsigned int)ms); #endif - #if defined(__linux__) || defined(__FreeBSD__) || defined(__EMSCRIPTEN__) + #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__EMSCRIPTEN__) struct timespec req = { 0 }; time_t sec = (int)(ms/1000.0f); ms -= (sec*1000); |
