aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2015-07-31 11:36:51 -0700
committerPaul Yang <TeBoring@users.noreply.github.com>2015-07-31 11:36:51 -0700
commitbfbf35da9e3d97275ddf718f1e34e051d24f3be2 (patch)
treeafe34089a80fb4edf99af17ba9d588e0449b0617 /src
parentabd7083b0c5344dddaa5b7097918950251018ab7 (diff)
parent8c27eea686deb85bc61a5bb47a2a5804e731ee05 (diff)
downloadprotobuf-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')
-rw-r--r--src/google/protobuf/compiler/command_line_interface.cc2
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;