From abeece3bd9d8c9ee5e5ed417ec0028a468b7a7ff Mon Sep 17 00:00:00 2001 From: Rabia Alhaffar Date: Thu, 11 Jun 2020 22:01:08 +0300 Subject: [PATCH] Fixed type problem in GetOS --- src/core.c | 2 +- src/raylib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index 5e653b0c9..96e8c071c 100644 --- a/src/core.c +++ b/src/core.c @@ -1174,7 +1174,7 @@ void SetClipboardText(const char *text) } // Get current operating system used -void GetOS() +const char *GetOS(void) { #ifdef _WIN32 || _WIN64 return "Windows"; diff --git a/src/raylib.h b/src/raylib.h index 6367ef691..0bc989cd9 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 void GetOS(); // Get current operating system +RLAPI const char *GetOS(void); // Get current operating system // Cursor-related functions RLAPI void ShowCursor(void); // Shows cursor