define PRExPTR on SunOS

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2791 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2007-06-27 22:17:22 +00:00
parent 0be19cb959
commit c33e78ed08
+12 -2
View File
@@ -36,11 +36,21 @@
# endif
#else
# include <inttypes.h>
# ifndef PRIxPTR
/* SunOS (at least version 5.9) does not have PRIxPTR in inttypes.h */
# if defined(__arch64__) || defined(__alpha) || defined(__x86_64) \
|| defined(_M_IA64) || defined(_M_AMD64)
/* 64-bit platforms */
# define PRIxPTR "lx"
# else
# define PRIxPTR "x"
# endif
# endif /* defined(PRIxPTR) */
#endif
#if defined(__arch64__) || defined(__alpha) || defined(__x86_64) \
|| defined(_M_IA64) || defined(_M_AMD64)
/* 64-bit platforms */
|| defined(_M_IA64) || defined(_M_AMD64)
/* 64-bit platforms */
# define UQM_INT16 short
# define UQM_INT32 int
# define UQM_INT64 long