Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ofstd/libsrc/ofwhere.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ int OFgetExecutablePath(char* out, int capacity, int* dirname_length)
return OFgetModulePath_(NULL, out, capacity, dirname_length);
}

#elif defined(__linux__) || defined(__CYGWIN__) || defined(__sun) || defined(WAI_USE_PROC_SELF_EXE)
#elif defined(__linux__) || defined(__CYGWIN__) || defined(__sun) || defined(__GNU__) || defined(WAI_USE_PROC_SELF_EXE)

#include <stdio.h>
#include <stdlib.h>
Expand All @@ -185,6 +185,10 @@ int OFgetExecutablePath(char* out, int capacity, int* dirname_length)
#endif
#endif

#if !defined(PATH_MAX)
#define PATH_MAX 1024
#endif


int OFgetExecutablePath(char* out, int capacity, int* dirname_length)
{
Expand Down