Jean-Marc, Andreas reports that #include <CoreServices/CoreServices.h> which is needed to compile the code below to ascertain the user_lyxdir on the Mac FSRef fsref; OSErr const error_code = FSFindFolder(kUserDomain, kApplicationSupportFolderType, kDontCreateFolder, &fsref); if (error_code != 0) return string();
char application_support[PATH_MAX + 1]; OSStatus const status_code = FSRefMakePath(&fsref, application_support, PATH_MAX); if (status_code != 0) return string(); return AddPath(application_support, PACKAGE); pulls in a type 'FileInfo' that clashes with our own FileInfo class. There's no problem in the 1.4.x tree, because our class is hidden away: namespace lyx { namespace support { class FileInfo; } // namespace support } namespace lyx I think that's overkill for the 1.3.x tree, but I do propose moving FileInfo into namespace lyx. Patch attached. Ok? -- Angus
FileInfo.diff.bz2
Description: BZip2 compressed data