Export GSPathHandling() in GNUstep headers.

Fixes linker errors for some tests under Windows MSVC.
This commit is contained in:
Frederik Seiffert 2021-07-02 15:12:31 +02:00 committed by Frederik Seiffert
parent 31ad6693ee
commit 813ae35d39
3 changed files with 7 additions and 2 deletions

View file

@ -34,6 +34,12 @@
extern "C" {
#endif
/**
* See "Portable path handling" in NSString.h.
*/
GS_EXPORT const char*
GSPathHandling(const char *mode);
#if OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
/**

View file

@ -1066,7 +1066,6 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
{
if (self == [NSBundle class])
{
extern const char *GSPathHandling(const char *);
NSAutoreleasePool *pool = [NSAutoreleasePool new];
NSString *file;
const char *mode;

View file

@ -252,7 +252,7 @@ static enum {
* Any other none-null string sets do-the-right-thing mode.<br />
* The function returns a C String describing the old mode.
*/
const char*
GS_DECLARE const char*
GSPathHandling(const char *mode)
{
int old = pathHandling;