mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Export GSPathHandling() in GNUstep headers.
Fixes linker errors for some tests under Windows MSVC.
This commit is contained in:
parent
31ad6693ee
commit
813ae35d39
3 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue