gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling 0.6.14 on Solaris 10 SPARC


From: Baurzhan Ismagulov
Subject: Re: Compiling 0.6.14 on Solaris 10 SPARC
Date: Fri, 20 Apr 2007 20:58:31 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Fri, Apr 20, 2007 at 06:54:34PM +0200, Pawel Kot wrote:
> #ifdef HAVE_LIMITS_H
> #  include <limits.h>
> -#else
> -#  define INT_MAX 2147483647
> #endif
> 
> #ifdef HAVE_UNISTD_H
> @@ -109,6 +107,10 @@
> #  include <termios.h>
> #endif
> 
> +#if !defined(INT_MAX)
> +#  define INT_MAX 2147483647
> +#endif

Hmm, could you please explain what this modification does? I couldn't
try it due to the problems I've just written, but I don't see how it is
supposed to work. INT_MAX should be defined in limits.h according to
C89, and gcc 3.4.3 certainly implements it. I've tried the following
code on Solaris 10 with gcc 3.4.3, it works:

#include <limits.h>

int 
main(void)
{
        printf("%d\n", INT_MAX);
}

So is the problem perhaps that HAVE_LIMITS_H is undefined?

With kind regards,
-- 
Baurzhan Ismagulov
http://www.kz-easy.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]