Fix the includes in lib/Fuzzer on Windows that have ordering

dependencies and add comments to tell future maintainers about those
requirements.

llvm-svn: 304843
This commit is contained in:
Chandler Carruth 2017-06-06 23:28:01 +00:00
parent 6abf834976
commit 42258b84d2
2 changed files with 6 additions and 2 deletions

View File

@ -13,9 +13,11 @@
#include "FuzzerExtFunctions.h"
#include "FuzzerIO.h"
#include "Psapi.h"
#include "Windows.h"
// This must be included after Windows.h.
#include "Psapi.h"
namespace fuzzer {
ExternalFunctions::ExternalFunctions() {

View File

@ -12,7 +12,6 @@
#if LIBFUZZER_WINDOWS
#include "FuzzerIO.h"
#include "FuzzerInternal.h"
#include <Psapi.h>
#include <cassert>
#include <chrono>
#include <cstring>
@ -24,6 +23,9 @@
#include <sys/types.h>
#include <windows.h>
// This must be included after windows.h.
#include <Psapi.h>
namespace fuzzer {
static const FuzzingOptions* HandlerOpt = nullptr;