Re: [cc65] compile problem of current snapshot

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-08-26 14:01:36
Hi!

On Fri, Aug 26, 2005 at 09:08:04AM +0200, MagerValp wrote:
>   inttypes.h generates a type conflict for intmax_t. I have stdint.h,
>   but GCC doesn't define __STDC_VERSION__, as I guess it defaults to
>   C89 with GNU extensions. To enable C99, you have to add -std=c99 or
>   -std=gnu99 to the commandline, but since every makefile in the src
>   directory explicitly sets CFLAGS, there's no way of doing this. Some
>   way of inheriting CFLAGS from the main makefile would be good (and
>   ditto for CC).

I'm wondering about this one, because my gcc 3.2 doesn't have any problems -
it seems to define __STDC_VERSION__ without additional command line
parameters. Anyway, I've changed the check to

    #if (__STDC_VERSION__ >= 199901) || (__GNUC__ >= 3)

This should cure the problem also for your version.

All other things apply to the master makefile which is maintained by Greg. So
I'll see if he would like to comment.

Thanks for testing!

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Aug 26 14:01:45 2005

This archive was generated by hypermail 2.1.8 : 2005-08-26 14:01:48 CEST