summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerIOWindows.cpp
diff options
context:
space:
mode:
authorMarcos Pividori <mpividori@google.com>2016-12-13 17:46:40 +0000
committerMarcos Pividori <mpividori@google.com>2016-12-13 17:46:40 +0000
commit7c1defd73801ca7e37d27d01fbcb576e86699850 (patch)
treeb1c394da5583e405a17c4aa6e0c3b039eee53862 /llvm/lib/Fuzzer/FuzzerIOWindows.cpp
parent67dfacdd80791984a11d5ce3a4df8dad3043ed8f (diff)
downloadbcm5719-llvm-7c1defd73801ca7e37d27d01fbcb576e86699850.tar.gz
bcm5719-llvm-7c1defd73801ca7e37d27d01fbcb576e86699850.zip
[libFuzzer] Avoid name collision with Windows API.
Windows uses some macros to replace DeleteFile() by DeleteFileA() or DeleteFileW(). This was causing an error at link time. DeleteFile was renamed to RemoveFile(). Differential Revision: https://reviews.llvm.org/D27577 llvm-svn: 289563
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerIOWindows.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerIOWindows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerIOWindows.cpp b/llvm/lib/Fuzzer/FuzzerIOWindows.cpp
index dd36d0632bb..a4738eb9dfe 100644
--- a/llvm/lib/Fuzzer/FuzzerIOWindows.cpp
+++ b/llvm/lib/Fuzzer/FuzzerIOWindows.cpp
@@ -135,7 +135,7 @@ int DuplicateFile(int Fd) {
return _dup(Fd);
}
-void DeleteFile(const std::string &Path) {
+void RemoveFile(const std::string &Path) {
_unlink(Path.c_str());
}
OpenPOWER on IntegriCloud