[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

random_r: support for MSVC

From: Bruno Haible
Subject: random_r: support for MSVC
Date: Thu, 12 Jan 2012 21:58:17 +0100
User-agent: KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; )

A testdir for the module 'random_r' yields this compilation error on MSVC 9:

random_r.c(64) : fatal error C1083: cannot open include file "inttypes.h": No 
such file or directory
make[3]: *** [random_r.lo] Error 1

The reason is that while 'random_r' depends on 'stdint', the file includes
<inttypes.h>, which requires a different module. This patch fixes it.

2012-01-12  Bruno Haible  <address@hidden>

        random_r: Support for MSVC 9.
        * lib/random_r.c: Include stdint.h, not inttypes.h.

--- lib/random_r.c.orig Thu Jan 12 21:57:26 2012
+++ lib/random_r.c      Thu Jan 12 21:53:49 2012
@@ -61,7 +61,7 @@
 #include <limits.h>
 #include <stddef.h>
 #include <stdlib.h>
-#include <inttypes.h>
+#include <stdint.h>
 /* An improved random number generation package.  In addition to the standard

reply via email to

[Prev in Thread] Current Thread [Next in Thread]