command_line_interface: check if __APPLE__ is defined
This commit is contained in:
parent
e4bbca1fc5
commit
ec70372f85
@ -195,7 +195,7 @@ bool GetProtocAbsolutePath(std::string* path) {
|
||||
#ifdef _WIN32
|
||||
char buffer[MAX_PATH];
|
||||
int len = GetModuleFileNameA(NULL, buffer, MAX_PATH);
|
||||
#elif __APPLE__
|
||||
#elif defined(__APPLE__)
|
||||
char buffer[PATH_MAX];
|
||||
int len = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user