X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;h=0f0fca46624da7c0212b2971c72b0d8a02c2eae8;hp=459c13ccccf887e6e72a8c8be9eafe633c6fed4c;hb=37fa8adc2b4aeba95c10531b9bb834b0fcb47c42;hpb=11b0c7b44a2ce6b0a39bcb40849dd88b40d49a09 diff --git a/src/misc.cpp b/src/misc.cpp index 459c13cc..0f0fca46 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 @@ -65,17 +51,15 @@ const string engine_info(bool to_uci) { string month, day, year; stringstream s, date(__DATE__); // From compiler, format is "Sep 21 2008" + s << "Stockfish " << Version; + if (Version.empty()) { date >> month >> day >> year; - s << "Stockfish " << Tag - << setfill('0') << " " << year.substr(2) - << setw(2) << (1 + months.find(month) / 4) - << setw(2) << day; + s << Tag << setfill('0') << " " << year.substr(2) + << setw(2) << (1 + months.find(month) / 4) << setw(2) << day; } - else - s << "Stockfish " << Version; s << cpu64 << popcnt << (to_uci ? "\nid author ": " by ") << "Tord Romstad, Marco Costalba and Joona Kiiski"; @@ -219,6 +203,8 @@ void prefetch(char*) {} #else +# include + void prefetch(char* addr) { # if defined(__INTEL_COMPILER) || defined(__ICL)