# HG changeset patch # User rubidium # Date 2007-03-06 21:18:25 # Node ID ac74a3fd9e8a96611d6d7a050342ec8369e9a84b # Parent f8ab32fb5f22f91c4e93bc468b2beffb95897201 (svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h. diff --git a/src/stdafx.h b/src/stdafx.h --- 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