diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2015-07-31 11:36:51 -0700 |
---|---|---|
committer | Paul Yang <TeBoring@users.noreply.github.com> | 2015-07-31 11:36:51 -0700 |
commit | bfbf35da9e3d97275ddf718f1e34e051d24f3be2 (patch) | |
tree | afe34089a80fb4edf99af17ba9d588e0449b0617 /src/google | |
parent | abd7083b0c5344dddaa5b7097918950251018ab7 (diff) | |
parent | 8c27eea686deb85bc61a5bb47a2a5804e731ee05 (diff) | |
download | protobuf-bfbf35da9e3d97275ddf718f1e34e051d24f3be2.tar.gz protobuf-bfbf35da9e3d97275ddf718f1e34e051d24f3be2.tar.bz2 protobuf-bfbf35da9e3d97275ddf718f1e34e051d24f3be2.zip |
Merge pull request #643 from yukawa/fix_win_unicode_build
Fix build failure on Windows when Unicode build is enabled.
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/compiler/command_line_interface.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/command_line_interface.cc b/src/google/protobuf/compiler/command_line_interface.cc index c57cfd3d..e8871861 100644 --- a/src/google/protobuf/compiler/command_line_interface.cc +++ b/src/google/protobuf/compiler/command_line_interface.cc @@ -189,7 +189,7 @@ bool TryCreateParentDirectory(const string& prefix, const string& filename) { bool GetProtocAbsolutePath(string* path) { #ifdef _WIN32 char buffer[MAX_PATH]; - int len = GetModuleFileName(NULL, buffer, MAX_PATH); + int len = GetModuleFileNameA(NULL, buffer, MAX_PATH); #elif __APPLE__ char buffer[PATH_MAX]; int len = 0; |