tinycc-devel
[Top][All Lists]
Advanced

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

__STDC_VERSION__ is needed (Re: [Tinycc-devel] CVS Sync - The Rest)


From: Detlef Riekenberg
Subject: __STDC_VERSION__ is needed (Re: [Tinycc-devel] CVS Sync - The Rest)
Date: Sun, 13 Jan 2008 16:16:16 +0100

On So, 2007-12-16 at 20:02 +0100, grischka wrote:

> I will drop those labeled 
>     "[N] will not apply" 
> unless someone can tell a good reason why we would need one.

>     [N] 477  RL_tcc_defines_stdc_ver (c99)
>     http://hg.sharesource.org/mercurialtcc/rev/1e81d5b65878

every source, that use the typedefs for int64_t and u_int64_t
from "sys/types.h" does not work.

glibc (2.3) enable 64 bit types for gcc < 2.7 and other compiler:
#if defined __GNUC__ \
    || (defined __PGI && defined __i386__ ) \
    || (defined __INTEL_COMPILER && \
       (defined __i386__ || defined __ia64__)) \
    || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
# define __GLIBC_HAVE_LONG_LONG 1
#endif

glibc use macros with "__attribute__ ((__mode__ (MODE)))"
for gcc 2.7 and above.

The Patch should work for many packages, when using glibc.
(packages that use uclibc still need "__GNUC__")


-- 
 
By by ... Detlef






reply via email to

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