File/installation paths: fix path of startup.blend for OSX

Also fix the header file no reinclusion macro name

Thanks to Jens Verwiebe for the patch
This commit is contained in:
Damien Plisson
2010-07-06 19:42:06 +00:00
parent cfc35a4d30
commit e64f3dd4d5

View File

@@ -30,8 +30,8 @@
*
* ***** END GPL LICENSE BLOCK *****
*/
#ifndef BLI_UTIL_H
#define BLI_UTIL_H
#ifndef BLI_PATH_UTIL_H
#define BLI_PATH_UTIL_H
#ifdef __cplusplus
extern "C" {
@@ -102,6 +102,8 @@ char *BLI_get_folder_create(int folder_id, char *subfolder);
#ifdef WIN32
#define BLENDER_BASE_FORMAT "%s\\Blender Foundation\\Blender\\%s"
#elif __APPLE__
#define BLENDER_BASE_FORMAT "%s/Blender/%s"
#else
#define BLENDER_BASE_FORMAT "%s/.blender/%s"
#endif