common: prevent buffer overflow
[supercollider.git] / include / common / SC_StandAloneInfo_Darwin.h
blobbb14e6e0f1ea3d4355aa63ac4f003d0753538e46
1 #if defined(__APPLE__) || defined(SC_IPHONE)
3 #ifndef _SC_StandAloneInfo_
4 #define _SC_StandAloneInfo_
5 #endif
7 class SC_StandAloneInfo;
9 class SC_StandAloneInfo
11 private:
12 static bool sIsStandAlone;
13 static bool haveCheckedBundleStatus;
14 static char dirPath[PATH_MAX];
16 static void SC_StandAloneInfoInit();
17 public:
18 static bool IsStandAlone();
19 static void GetResourceDir(char* pathBuf, int length);
21 #endif