[libmath-prime-util-perl] 09/181: Microsoft compiler workarounds
Partha P. Mukherjee
ppm-guest at moszumanska.debian.org
Thu May 21 18:51:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
ppm-guest pushed a commit to annotated tag v0.36
in repository libmath-prime-util-perl.
commit dc95551e2ee09a70c41189096f41f40c321b9e52
Author: Dana Jacobsen <dana at acm.org>
Date: Wed Dec 11 22:47:18 2013 -0800
Microsoft compiler workarounds
---
lmo.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/lmo.c b/lmo.c
index e1afe7c..619ba7f 100644
--- a/lmo.c
+++ b/lmo.c
@@ -67,9 +67,15 @@
#include "cache.h"
#include "sieve.h"
-typedef unsigned char uint8;
-typedef unsigned short uint16;
-typedef uint32_t uint32;
+#ifdef _MSC_VER
+ typedef unsigned __int8 uint8;
+ typedef unsigned __int16 uint16;
+ typedef unsigned __int32 uint32;
+#else
+ typedef unsigned char uint8;
+ typedef unsigned short uint16;
+ typedef uint32_t uint32;
+#endif
static const unsigned char byte_ones[256] =
{0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmath-prime-util-perl.git
More information about the Pkg-perl-cvs-commits
mailing list