git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4469
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
return wxString (sMacFileNameConversion) ;
}
return wxString (sMacFileNameConversion) ;
}
-wxString wxMacFSSpec2MacFilename( const FSSpec *spec )
+wxString wxMacFSSpec2MacFilename( const FSSpec *spec )
{
Handle myPath ;
short length ;
{
Handle myPath ;
short length ;
+#if defined(__WXMSW__) || defined(__WXPM__)
wxUnix2DosFilename (char *s)
#else
wxUnix2DosFilename (char *s)
#else
-wxUnix2DosFilename (char *WXUNUSED(s) )
+wxUnix2DosFilename (char *WXUNUSED(s) )
#endif
{
// Yes, I really mean this to happen under DOS only! JACS
#endif
{
// Yes, I really mean this to happen under DOS only! JACS
#ifdef _MSC_VER
if (_getcwd(cbuf, sz) == NULL) {
#elif defined( __WXMAC__)
#ifdef _MSC_VER
if (_getcwd(cbuf, sz) == NULL) {
#elif defined( __WXMAC__)
- enum
- {
- SFSaveDisk = 0x214, CurDirStore = 0x398
+ enum
+ {
+ SFSaveDisk = 0x214, CurDirStore = 0x398
};
FSSpec cwdSpec ;
FSMakeFSSpec( - *(short *) SFSaveDisk , *(long *) CurDirStore , NULL , &cwdSpec ) ;
wxString res = wxMacFSSpec2UnixFilename( &cwdSpec ) ;
strcpy( buf , res ) ;
};
FSSpec cwdSpec ;
FSMakeFSSpec( - *(short *) SFSaveDisk , *(long *) CurDirStore , NULL , &cwdSpec ) ;
wxString res = wxMacFSSpec2UnixFilename( &cwdSpec ) ;
strcpy( buf , res ) ;
#else
if (getcwd(cbuf, sz) == NULL) {
#endif
#else
if (getcwd(cbuf, sz) == NULL) {
#endif