Start work on GNU

This commit is contained in:
Yelninei
2025-05-19 15:07:46 +00:00
committed by Carter Li
parent f2f9b10b18
commit 71fbe04367
8 changed files with 121 additions and 8 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
static void getExePath(FFPlatform* platform)
{
char exePath[PATH_MAX + 1];
#ifdef __linux__
#if defined(__linux__) || defined (__GNU__)
ssize_t exePathLen = readlink("/proc/self/exe", exePath, sizeof(exePath) - 1);
if (exePathLen >= 0)
exePath[exePathLen] = '\0';