summaryrefslogtreecommitdiff
path: root/source/hal/source/platform/native/source/platform_drivers.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/hal/source/platform/native/source/platform_drivers.c')
-rw-r--r--source/hal/source/platform/native/source/platform_drivers.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/hal/source/platform/native/source/platform_drivers.c b/source/hal/source/platform/native/source/platform_drivers.c
index 10db99a..d5b3727 100644
--- a/source/hal/source/platform/native/source/platform_drivers.c
+++ b/source/hal/source/platform/native/source/platform_drivers.c
@@ -19,6 +19,8 @@
#include <string.h>
+static const char* s_platform_name = "native";
+
int platform_init(void)
{
return 0;
@@ -27,7 +29,7 @@ int platform_init(void)
void platform_release(void)
{}
-void platform_name(char* name, size_t size)
+const char* platform_name(void)
{
- strncpy(name, "native", size);
+ return s_platform_name;
} \ No newline at end of file