• R/O
  • HTTP
  • SSH
  • HTTPS

mhash384: Commit

MHash-384 development repository


Commit MetaInfo

Revision4f2a40638f7d8e252e638b06f482a4a60c39c631 (tree)
Zeit2017-12-23 01:12:58
AutorLoRd_MuldeR <mulder2@gmx....>
CommiterLoRd_MuldeR

Log Message

Fixed MSYS/MinGW detection.

Ändern Zusammenfassung

Diff

--- a/src/sysinfo.h
+++ b/src/sysinfo.h
@@ -25,15 +25,15 @@
2525 #include <stdint.h>
2626
2727 /*System*/
28-#ifdef _WIN32
29-#define SYSTEM_TYPE "Windows"
30-#elif __CYGWIN__
28+#if defined (__CYGWIN__)
3129 #define SYSTEM_TYPE "Cygwin"
32-#elif __MINGW32__
33-#define SYSTEM_TYPE "MinGW"
34-#elif __linux__
30+#elif defined(__MINGW32__)
31+#define SYSTEM_TYPE "MSYS/MinGW"
32+#elif defined(_WIN32) || defined(_WIN64)
33+#define SYSTEM_TYPE "Windows"
34+#elif defined(__linux__)
3535 #define SYSTEM_TYPE "Linux"
36-#elif __unix__
36+#elif defined(__unix__)
3737 #define SYSTEM_TYPE "Unix"
3838 #else
3939 #define SYSTEM_TYPE "Unknown"
Show on old repository browser