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 <d...@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 _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits