From f1abcf0ff7bf2cc9dba74f027e3c0c3a57447120 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 6 Mar 2007 21:18:25 +0000 Subject: [PATCH] (svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h. --- src/stdafx.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/stdafx.h b/src/stdafx.h index c5371e40bd..022ca61e59 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -8,8 +8,14 @@ * does not have stdint.h and apparently neither does MorphOS, so define * INT64_MAX for them ourselves. */ #if !defined(_MSC_VER) && !defined( __MORPHOS__) -# define __STDC_LIMIT_MACROS -# include +# if defined (SUNOS) +/* SunOS/Solaris does not have stdint.h, but inttypes.h defines everything + * stdint.h defines and we need. */ +# include +# else +# define __STDC_LIMIT_MACROS +# include +# endif #else # define INT64_MAX 9223372036854775807LL #endif