command_line_interface: check if __APPLE__ is defined

This commit is contained in:
Ben Boeckel 2019-03-27 13:24:06 -04:00 committed by Adam Cozzette
parent e4bbca1fc5
commit ec70372f85

View File

@ -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;