summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2002-03-16 15:36:16 +0000
committerGurusamy Sarathy <gsar@cpan.org>2002-03-16 15:36:16 +0000
commit0e983133b1c8b37e15a466d55b4d79492d02e7da (patch)
treef1f4cfcdaf004458d4866f1876aba9f42341368e /handy.h
parent3ad83ce7d21aa3aa1ac69bde413ed71b6ce30329 (diff)
downloadperl-0e983133b1c8b37e15a466d55b4d79492d02e7da.tar.gz
UIN32_MAX with borken under HP-UX+gcc
p4raw-id: //depot/perl@15252
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index be0454b22c..9a06b77e26 100644
--- a/handy.h
+++ b/handy.h
@@ -174,7 +174,11 @@ typedef U64TYPE U64;
#define I32_MAX INT32_MAX
#define I32_MIN INT32_MIN
-#define U32_MAX UINT32_MAX
+#ifndef UINT32_MAX_BROKEN /* e.g. HP-UX with gcc messes this up */
+# define U32_MAX UINT32_MAX
+#else
+# define U32_MAX 4294967295U
+#endif
#define U32_MIN UINT32_MIN
#else