[libmath-prime-util-perl] 59/181: restore Win32 support
Partha P. Mukherjee
ppm-guest at moszumanska.debian.org
Thu May 21 18:51:06 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 1392ff53a9e22d8a3939c2ded9a609051810b2cd
Author: bulk88 <bulk88 at hotmail.com>
Date: Mon Dec 30 01:52:30 2013 -0500
restore Win32 support
---
.gitignore | 11 +++++++++++
ptypes.h | 29 +++++++++++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/.gitignore b/.gitignore
index 79f9d4f..6467851 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@ Makefile
Makefile.old
MYMETA.*
Util.bs
+Util.def
pm_to_blib
XS.[co]
cache.o
@@ -13,6 +14,16 @@ lehmer.o
lmo.o
primality.o
aks.o
+XS.obj
+cache.obj
+factor.obj
+sieve.obj
+util.obj
+lehmer.obj
+lmo.obj
+primality.obj
+aks.obj
+*.pdb
blib*
b[0-9][0-9][0-9][0-9][0-9][0-9].txt
script-test-data.bs
diff --git a/ptypes.h b/ptypes.h
index fe36420..1259198 100644
--- a/ptypes.h
+++ b/ptypes.h
@@ -11,6 +11,35 @@
* Thanks to Sisyphus for bringing the MSC issue to my attention (and even
* submitting a working patch!).
*/
+typedef unsigned __int8 uint8_t;
+typedef unsigned __int16 uint16_t;
+typedef unsigned __int32 uint32_t;
+typedef unsigned __int64 uint64_t;
+typedef __int64 int64_t;
+typedef __int32 int32_t;
+typedef __int16 int16_t;
+typedef __int8 int8_t;
+#define inline __inline
+
+#ifdef _M_X64
+# define __x86_64__
+# define __x86_64
+# define __amd64__
+# define __amd64
+#endif
+#ifdef _M_IX86
+# define __i386__
+# define __i386
+# define i386
+# define _X86_
+#endif
+#ifdef _M_IA64
+# define __ia64__
+# define __ia64
+# define __IA64__
+# define __itanium__
+#endif
+
#elif defined(__sun) || defined(__sun__)
/* stdint.h is only in Solaris 10+. */
#if defined(__SunOS_5_10) || defined(__SunOS_5_11) || defined(__SunOS_5_12)
--
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