blackberry / SDL

Simple DirectMedia Layer is an open-source, cross-platform multimedia library designed to provide a low level API.
GNU Lesser General Public License v2.1
86 stars 46 forks source link

uintptr_t conflict with QNX internal includes. #8

Closed trevornunes closed 12 years ago

trevornunes commented 12 years ago

In SDL_config_minimal.h we have ...

typedef unsigned long uintptr_t;

but it's also defined in stdint.h in the target/qnx6/usr/include directory.

For FCEUXpb I got around this by commenting out the stdint.h typedef but something more flexible is probably required or maybe in SDL_config_minimal.h :

ifndef QNXNTO

typedef ...

endif

I couldn't get a clean solution working ...

jnicholl commented 12 years ago

Thanks for the heads up. Why are you using the minimal configuration, however? Wouldn't it be more natural to use the playbook version? Have you defined PLAYBOOK?

-----Original Message----- From: Trevor Nunes [mailto:reply@reply.github.com] Sent: Tuesday, January 03, 2012 4:35 PM To: Jeremy Nicholl Subject: [SDL] uintptr_t conflict with QNX internal includes. (#8)

In SDL_config_minimal.h we have ...

typedef unsigned long uintptr_t;

but it's also defined in stdint.h in the target/qnx6/usr/include directory.

For FCEUXpb I got around this by commenting out the stdint.h typedef but something more flexible is probably required or maybe in SDL_config_minimal.h :

ifndef QNXNTO

typedef ...

endif

I couldn't get a clean solution working ...


Reply to this email directly or view it on GitHub: https://github.com/blackberry/SDL/issues/8


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

trevornunes commented 12 years ago

i will check my build, i think its set in the sdl lib build its not set in fceux compile however ...

jnicholl commented 12 years ago

Can you set it in the fceux compile just to see?

-----Original Message----- From: Trevor Nunes [mailto:reply@reply.github.com] Sent: Wednesday, January 04, 2012 1:33 AM To: Jeremy Nicholl Subject: Re: [SDL] uintptr_t conflict with QNX internal includes. (#8)

i will check my build, i think its set in the sdl lib build its not set in fceux compile however ...


Reply to this email directly or view it on GitHub: https://github.com/blackberry/SDL/issues/8#issuecomment-3351180


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

a7omic commented 12 years ago

I saw this too when I compiled your FCEUX project, I just commented it out in SDL_config_minimal.h.