Fix cmake/OSX build after path changes.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 4 Jul 2010 16:20:42 +0000 (16:20 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 4 Jul 2010 16:20:42 +0000 (16:20 +0000)
source/blender/blenlib/BLI_path_util.h
source/blender/blenlib/CMakeLists.txt

index 24b74b4..e2cb0e1 100644 (file)
 #ifndef BLI_UTIL_H
 #define BLI_UTIL_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct ListBase;
 struct direntry;
 
@@ -191,5 +195,9 @@ void BLI_where_is_temp(char *fullname, int usertemp);
 void BLI_string_to_utf8(char *original, char *utf_8, const char *code);
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
 
index 185e1c9..21cd92c 100644 (file)
@@ -34,7 +34,7 @@ SET(INC
 )
 
 IF(APPLE)
-       SET(SRC ${SRC} intern/path_util_cocoa.m)
+       SET(SRC ${SRC} intern/path_util_cocoa.mm)
 ENDIF(APPLE)
 
 IF(CMAKE_SYSTEM_NAME MATCHES "Linux")