From 1b69e4505bb89923de59f721d68cefd591695d26 Mon Sep 17 00:00:00 2001 From: Rabia Alhaffar Date: Thu, 11 Jun 2020 22:20:57 +0300 Subject: [PATCH] Fixing GetOS --- src/core.c | 2 ++ src/raylib.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 96e8c071c..2959946a8 100644 --- a/src/core.c +++ b/src/core.c @@ -1192,6 +1192,8 @@ const char *GetOS(void) return "Solaris"; #elif BSD return "BSD"; + #else + return NULL: #endif } diff --git a/src/raylib.h b/src/raylib.h index 0bc989cd9..c229c9b56 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -898,7 +898,7 @@ RLAPI Vector2 GetWindowPosition(void); // Get window RLAPI const char *GetMonitorName(int monitor); // Get the human-readable, UTF-8 encoded name of the primary monitor RLAPI const char *GetClipboardText(void); // Get clipboard text content RLAPI void SetClipboardText(const char *text); // Set clipboard text content -RLAPI const char *GetOS(void); // Get current operating system +RLAPI const char *GetOS(void); // Get current operating system // Cursor-related functions RLAPI void ShowCursor(void); // Shows cursor