This adds the return type with GetFullPathNameA declaration.
Otherwise the following error is shown with clang 16
grealpath.h:29:19: error: type specifier missing, defaults to 'int';
ISO C99 and later do not support implicit int [-Wimplicit-int]
#include <stdlib.h>
+#ifdef _WIN32
+/* We don't want to include <windows.h> as it clashes horribly
+ * with token names from scannerparser.h. So just declare
+ * GetFullPathNameA() here.
+ */
+extern unsigned long __stdcall GetFullPathNameA(const char*, unsigned long, char*, char**);
+#endif
+
/**
* g_realpath:
*
else
return NULL;
#else
- /* We don't want to include <windows.h> as it clashes horribly
- * with token names from scannerparser.h. So just declare
- * GetFullPathNameA() here.
- */
- extern __stdcall GetFullPathNameA(const char*, int, char*, char**);
char *buffer;
char dummy;
int rc, len;