SDL_types.h on ia64

Hi,

When I write applications using SDL on ia64 with the intel icc compiler,
I have troubles with the S/Uint64 types.

Basically, SDL_types.h defines the Uint64 using a typedef, which creates
a new type. But the icc compiler is too stupid to know how to case any
integer into a S/Uint64.
However, if I use a #define, things work fine. Is this causing side
troubles if the typedef for the 64 bit types in SDL_types.h are changed
to #defines like is done in the attached patch ?

Stephane

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: uint64.patch
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050213/1096f1d3/attachment.asc

Stephane Marchesin wrote:

Hi,

When I write applications using SDL on ia64 with the intel icc
compiler, I have troubles with the S/Uint64 types.

Basically, SDL_types.h defines the Uint64 using a typedef, which
creates a new type. But the icc compiler is too stupid to know how to
case any integer into a S/Uint64.
However, if I use a #define, things work fine. Is this causing side
troubles if the typedef for the 64 bit types in SDL_types.h are
changed to #defines like is done in the attached patch ?

Ok, I’m too tired and the patch is wrong. But is the idea ok ?

Stephane

Stephane Marchesin wrote:

Basically, SDL_types.h defines the Uint64 using a
typedef, which creates a new type.

typedef does not create a new type.–
Rainer Deyke - rainerd at eldwood.com - http://eldwood.com

Rainer Deyke wrote:

Stephane Marchesin wrote:

Basically, SDL_types.h defines the Uint64 using a
typedef, which creates a new type.

typedef does not create a new type.

With the icc compiler, it does, since it wants to cast it to make it a
unsigned long long

Do you have an answer to my problem ?

Stephane

talk to the icc compiler maintainers ?
-mikeOn Saturday 12 February 2005 10:11 pm, Stephane Marchesin wrote:

With the icc compiler, it does, since it wants to cast it to make it a
unsigned long long

Do you have an answer to my problem ?