diff --git a/cpplint/cpplint.py b/cpplint/cpplint.py index fb34e11..a626dd0 100755 --- a/cpplint/cpplint.py +++ b/cpplint/cpplint.py @@ -1860,7 +1860,7 @@ def GetHeaderGuardCPPVariable(filename): # --root=.. , will prepend the outer directory to the header guard full_path = fileinfo.FullName() - root_abspath = os.path.abspath(_root) + root_abspath = os.path.abspath(_root).replace('\\', '/') maybe_path = StripListPrefix(PathSplitToList(full_path), PathSplitToList(root_abspath))