[libmath-prime-util-perl] 02/16: Fix old Solaris compilation
Partha P. Mukherjee
ppm-guest at moszumanska.debian.org
Thu May 21 18:46:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
ppm-guest pushed a commit to annotated tag v0.19
in repository libmath-prime-util-perl.
commit 664f102d75eb3582ebc3c1b202e2fc12a3473520
Author: Dana Jacobsen <dana at acm.org>
Date: Mon Jan 14 01:13:52 2013 -0800
Fix old Solaris compilation
---
ptypes.h | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/ptypes.h b/ptypes.h
index 9cbee9a..fe36420 100644
--- a/ptypes.h
+++ b/ptypes.h
@@ -1,10 +1,7 @@
#ifndef MPU_PTYPES_H
#define MPU_PTYPES_H
-#ifndef _MSC_VER
-#define __STDC_LIMIT_MACROS
-#include <stdint.h>
-#else
+#ifdef _MSC_VER
/* No stdint.h for MS C, so we lose the chance to possibly optimize
* some operations on 64-bit machines running a 32-bit Perl. It's probably
* a rare enough case that we don't need to be too concerned. If we do want,
@@ -14,6 +11,15 @@
* Thanks to Sisyphus for bringing the MSC issue to my attention (and even
* submitting a working patch!).
*/
+#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)
+ #define __STDC_LIMIT_MACROS
+ #include <stdint.h>
+ #endif
+#else
+#define __STDC_LIMIT_MACROS
+#include <stdint.h>
#endif
#include "EXTERN.h"
--
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