Subject: | Compilation failure using MS VC++ 7.0. |
Dear Abhijit,
As you know, MS VC++ 7.0 doesn't support C99. I'm not sure whether the other
versions of MS VC++ support C99 or not.
Simply put, VC++ 7.0 doesn't have "stdint.h" so that doesn't have such a type
uint32_t.
Could you apply the attached patch?
Best regards,
Taro Nishino
Subject: | mt.h.diff.txt |
--- Math-Random-MT-1.08-orig\mt.h Thu Aug 6 12:46:51 2009
+++ Math-Random-MT-1.08\mt.h Thu Aug 6 15:29:41 2009
@@ -1,11 +1,13 @@
#ifndef _MATH_MT_H_
#define _MATH_MT_H_
-#if defined(__linux__) || defined(__WIN32__) || defined(__GLIBC__)
+/* The compiler is VC++ 7.0 when _MSC_VER == 1300 */
+#if defined(__linux__) || defined( _MSC_VER ) && ( _MSC_VER > 1300 ) || defined(__GLIBC__)
#include <stdint.h>
#elif defined(__osf__)
#include <inttypes.h>
-#else
+#elif defined( _MSC_VER ) && ( _MSC_VER <= 1300 )
+typedef unsigned __int32 uint32_t;
#include <sys/types.h>
#endif