]> git.lyx.org Git - lyx.git/blobdiff - src/support/Path.h
Cmake build:
[lyx.git] / src / support / Path.h
index 4c3d6ba1e8546ed92ca0d551703df3a46f246e21..e7940c09da2f7b90c18f8bbc653d93fb5a24e62b 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -25,7 +25,8 @@ namespace support {
  * change to a directory as the cwd, for example :
  *
  * if (blah) {
- *     Path p("/tmp/blah");
+ *     FileName pp("/tmp/blah");
+ *     PathChanger p(pp);
  *     ...
  * }
  *
@@ -56,12 +57,24 @@ private:
 // PathChanger("/tmp");   // wrong
 // PathChanger p("/tmp");  // right
 // we add this macro:
-#ifndef PATHCHANGER_C
 #define PathChanger(x) unnamed_PathChanger;
-#endif
 // Tip gotten from Bobby Schmidt's column in C/C++ Users Journal
 
 } // namespace support
 } // namespace lyx
 
+#ifdef __APPLE__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+int getPrivateFrameworkPathName(char * buf, unsigned len, char const * framework);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+
 #endif // PATH_H