From ec70372f854532ffacb6566492595d5421bda1ab Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 27 Mar 2019 13:24:06 -0400 Subject: [PATCH] command_line_interface: check if __APPLE__ is defined --- src/google/protobuf/compiler/command_line_interface.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/command_line_interface.cc b/src/google/protobuf/compiler/command_line_interface.cc index 126c433b6..ee27850c1 100644 --- a/src/google/protobuf/compiler/command_line_interface.cc +++ b/src/google/protobuf/compiler/command_line_interface.cc @@ -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;