-ansi and linux 2.5 kernels

Matthias Welwarsky matze at stud.fbi.fh-darmstadt.de
Sun Dec 29 10:04:51 GMT 2002

On Sunday 29 December 2002 10:21, Aaron J. Seigo wrote:
> hi...
> so apparently with the 2.5 kernels if you pass -ansi, you don't get "long
> long" defined. to quote from a recent bug report:
> "
>  It seems that this happens because of the following code (taken from
> asm/types.h):
>  -----------------------------------------------------
>  #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
>  typedef __signed__ long long __s64;
>  typedef unsigned long long __u64;
>  #endif
>  -----------------------------------------------------
>  "

Um, I'd suggest not using asm/types.h at all. __s64 and __u64 don't seem to 
follow any standard. Better use the types defined in sys/types.h

> it seems that -ansi is a default flag set by configure... should this be
> taken into consideration by the build system?
> it currently prevents kdemultimedia, for example, from compiling without
> defining long long yourself or changing makefiles.

I wonder where these types are used in kdemultimedia? It just doesn't seem to 
be portable. And of course, if something in KDE uses long long, it's not 
strictly ANSI compliant and the build system should take care of this.


Matthias Welwarsky
Fachschaft Informatik FH Darmstadt
Email: matze at stud.fbi.fh-darmstadt.de

"all software sucks equally, but some software is more equal"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021229/eef70f65/attachment.sig>

More information about the kde-core-devel mailing list