From 232cba891fe5900a4448857161b08dfd921a11e7 Mon Sep 17 00:00:00 2001 From: "sdagley%netscape.com" Date: Mon, 29 Apr 2002 15:49:49 +0000 Subject: [PATCH] Fix mach-o bustage introduced with last checkin - NS_TruncNodeName is implemented in nsLocalFileMac which currently isn't part of the mach-o build. git-svn-id: svn://10.0.0.236/trunk@120197 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/mac/nsFilePicker.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/widget/src/mac/nsFilePicker.cpp b/mozilla/widget/src/mac/nsFilePicker.cpp index c2e96ae1367..cdc8edc1f63 100644 --- a/mozilla/widget/src/mac/nsFilePicker.cpp +++ b/mozilla/widget/src/mac/nsFilePicker.cpp @@ -601,6 +601,9 @@ nsFilePicker::PutLocalFile(const nsString & inTitle, const nsString & inDefaultN // Until we switch to the HFS+ APIs for Mac file system calls // reduce the name to a max of 31 characters + // Conditionalize for non mach-o builds since XP_MACOSX target + // doesn't currently link against nsLocalFileMac for NS_TruncNodeName +#ifndef XP_MACOSX char origName[256]; char truncBuf[32]; ::CFStringGetCString(reply.saveFileName, origName, 256, theEncoding); @@ -609,7 +612,7 @@ nsFilePicker::PutLocalFile(const nsString & inTitle, const nsString & inDefaultN if (truncNameLen) BlockMoveData(truncName, &theFSSpec.name[1], truncNameLen); theFSSpec.name[0] = truncNameLen; - +#endif *outFileSpec = theFSSpec; // Return the FSSpec if (reply.replacing)