aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2017-08-11 11:45:41 -0700
committerGravatar Jisi Liu <jisi.liu@gmail.com>2017-08-11 11:45:41 -0700
commit7afa796bb914c911cc3d40aeeba1ce63b2f83f99 (patch)
tree624df85dc0ceb70815b51ed7801c96b6f00159b1 /src/google
parentdb125b8d3a3ceb8d2ed0938f6121858393078097 (diff)
Fix the declaration order in ming32
Diffstat (limited to 'src/google')
-rw-r--r--src/google/protobuf/stubs/io_win32.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/google/protobuf/stubs/io_win32.cc b/src/google/protobuf/stubs/io_win32.cc
index a6449751..25f672cc 100644
--- a/src/google/protobuf/stubs/io_win32.cc
+++ b/src/google/protobuf/stubs/io_win32.cc
@@ -108,15 +108,15 @@ bool has_longpath_prefix(const char_type* path) {
path[3] == '\\';
}
-// Returns true if the path starts with a drive specifier (e.g. "c:\").
template <typename char_type>
-bool is_path_absolute(const char_type* path) {
- return has_drive_letter(path) && is_separator(path[2]);
+bool is_separator(char_type c) {
+ return c == '/' || c == '\\';
}
+// Returns true if the path starts with a drive specifier (e.g. "c:\").
template <typename char_type>
-bool is_separator(char_type c) {
- return c == '/' || c == '\\';
+bool is_path_absolute(const char_type* path) {
+ return has_drive_letter(path) && is_separator(path[2]);
}
template <typename char_type>