X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc.cpp;h=0f0fca46624da7c0212b2971c72b0d8a02c2eae8;hb=7a8429d9f15a45c5a60f98c4aed798d10d511300;hp=459c13ccccf887e6e72a8c8be9eafe633c6fed4c;hpb=dbe5e28eaa284aeaa4927ddde8a4341200e0e601;p=stockfish
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)