From 566dfe55c5e1481bff4a65f0c5fcc3ed6de38063 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Tue, 24 Mar 2026 12:09:26 +0000 Subject: [PATCH] Provide whereami stubs for unsupported platforms --- src/whereami.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/whereami.c b/src/whereami.c index ba603562..78f02c39 100644 --- a/src/whereami.c +++ b/src/whereami.c @@ -737,7 +737,18 @@ extern "C" { #else -#error unsupported platform + WAI_FUNCSPEC int WAI_PREFIX(getExecutablePath)(char *out, int capacity, int *dirname_length) { + if(dirname_length) + *dirname_length = -1; + return -1; + } + + WAI_NOINLINE WAI_FUNCSPEC int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) { + if(dirname_length) + *dirname_length = -1; + return -1; + } + #endif #ifdef __cplusplus