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