[compiler-rt] r280146 - stats: define WIN32_LEAN_AND_MEAN when including windows.h
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 30 13:15:46 PDT 2016
Author: compnerd
Date: Tue Aug 30 15:15:46 2016
New Revision: 280146
URL: http://llvm.org/viewvc/llvm-project?rev=280146&view=rev
Log:
stats: define WIN32_LEAN_AND_MEAN when including windows.h
Reduce the amount of the header that we end up including in the build. The
additional definitions are not necessary.
Modified:
compiler-rt/trunk/lib/stats/stats_client.cc
Modified: compiler-rt/trunk/lib/stats/stats_client.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/stats/stats_client.cc?rev=280146&r1=280145&r2=280146&view=diff
==============================================================================
--- compiler-rt/trunk/lib/stats/stats_client.cc (original)
+++ compiler-rt/trunk/lib/stats/stats_client.cc Tue Aug 30 15:15:46 2016
@@ -16,6 +16,7 @@
//===----------------------------------------------------------------------===//
#ifdef _WIN32
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#include <dlfcn.h>
More information about the llvm-commits
mailing list