From 72641dcaae2241c830254fc19b742eb477d831a3 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 1 Apr 2012 12:00:15 +0100 Subject: [PATCH] Retire platform specifics include in misc.cpp Now that platform.h is included in types.h we don't need this stuff anymore. No functional change. Signed-off-by: Marco Costalba --- src/misc.cpp | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/src/misc.cpp b/src/misc.cpp index 459c13cc..3206a2d1 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -17,24 +17,6 @@ along with this program. If not, see . */ -#if defined(_WIN32) || defined(_WIN64) - -#define NOMINMAX // disable macros min() and max() -#include - -#else - -# include -# if defined(__hpux) -# include -# endif - -#endif - -#if !defined(NO_PREFETCH) -# include -#endif - #include #include #include @@ -42,6 +24,10 @@ #include "misc.h" #include "thread.h" +#if defined(__hpux) +# include +#endif + using namespace std; /// Version number. If Version is left empty, then Tag plus current @@ -219,6 +205,8 @@ void prefetch(char*) {} #else +# include + void prefetch(char* addr) { # if defined(__INTEL_COMPILER) || defined(__ICL) -- 2.39.2