summaryrefslogtreecommitdiff
path: root/lib/Support/Windows/Path.inc
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-12 02:00:39 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-12 02:00:39 +0000
commit81f207bf78fd79a5059e34b523ec881378227989 (patch)
treefe4c768fe107d18b9aa227ae4e4df71a8cb057d0 /lib/Support/Windows/Path.inc
parent23475569d5d6f3ca7cc745dddb86c16f126e3efc (diff)
downloadllvm-81f207bf78fd79a5059e34b523ec881378227989.tar.gz
llvm-81f207bf78fd79a5059e34b523ec881378227989.tar.bz2
llvm-81f207bf78fd79a5059e34b523ec881378227989.tar.xz
Don't put generic_category in the llvm namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Path.inc')
-rw-r--r--lib/Support/Windows/Path.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc
index 6a5792e70c..662f3019de 100644
--- a/lib/Support/Windows/Path.inc
+++ b/lib/Support/Windows/Path.inc
@@ -259,14 +259,14 @@ error_code resize_file(const Twine &path, uint64_t size) {
int fd = ::_wopen(path_utf16.begin(), O_BINARY | _O_RDWR, S_IWRITE);
if (fd == -1)
- return error_code(errno, generic_category());
+ return error_code(errno, std::generic_category());
#ifdef HAVE__CHSIZE_S
errno_t error = ::_chsize_s(fd, size);
#else
errno_t error = ::_chsize(fd, size);
#endif
::close(fd);
- return error_code(error, generic_category());
+ return error_code(error, std::generic_category());
}
error_code exists(const Twine &path, bool &result) {