Skip to content

Commit a2bfbc1

Browse files
committed
examples: repair the example on Linux
1 parent a05f02c commit a2bfbc1

File tree

1 file changed

+2
-0
lines changed
  • examples/c-api/buildsystem

1 file changed

+2
-0
lines changed

examples/c-api/buildsystem/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ static void usage() {
3232
exit(0);
3333
}
3434

35+
#if !defined(__linux__)
3536
static const char* basename(const char* path) {
3637
const char* result = strrchr(path, '/');
3738
return result ? result : path;
3839
}
40+
#endif
3941

4042
#if defined(_WIN32)
4143
static wchar_t* convertToMultiByte(const char* s) {

0 commit comments

Comments
 (0)