diff options
author | Marcos Pividori <mpividori@google.com> | 2016-12-13 17:46:40 +0000 |
---|---|---|
committer | Marcos Pividori <mpividori@google.com> | 2016-12-13 17:46:40 +0000 |
commit | 7c1defd73801ca7e37d27d01fbcb576e86699850 (patch) | |
tree | b1c394da5583e405a17c4aa6e0c3b039eee53862 /llvm/lib/Fuzzer/FuzzerIO.h | |
parent | 67dfacdd80791984a11d5ce3a4df8dad3043ed8f (diff) | |
download | bcm5719-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/FuzzerIO.h')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerIO.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerIO.h b/llvm/lib/Fuzzer/FuzzerIO.h index f5651cfe9ed..741fecf415b 100644 --- a/llvm/lib/Fuzzer/FuzzerIO.h +++ b/llvm/lib/Fuzzer/FuzzerIO.h @@ -57,7 +57,7 @@ int CloseFile(int Fd); int DuplicateFile(int Fd); -void DeleteFile(const std::string &Path); +void RemoveFile(const std::string &Path); } // namespace fuzzer |