Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Sorry, not uint8t, but int_8t

Original comment by [email protected] on 21 May 2008 at 12:49

from msinttypes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Does adding 'signed' to int*_t typedefs solved your problem? By Standard 
'signed' is 
assumed when missing, so 'singed int' = 'int' and compiler should not 
differentiate 
them.

From what I see I would rather say that we need to surround these typedefs with 
#ifdef guards. And even better, I would recommend to use my version of 
<stdint.h> 
and <inttypes.h> instead of one, embedded in SDL. To do this you just need to 
include it before any SDL includes, define HAVE_STDINT_H and HAVE_INTTYPES_H, 
and 
remove all these declarations from SDL_config_win32.h. It may be also good to 
try to 
push these changes to SDL mainline.

Original comment by alexander.chemeris on 26 May 2008 at 9:31

from msinttypes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Yes, adding 'signed' has solved the problem.
MSVC is known to not to fully support the standard.
I tried including <stdint.h> and <inttypes.h>, this didn't help.
SDL doesn't have these files, it simply defines necessary types in one of its 
headers.

Original comment by [email protected] on 26 May 2008 at 8:16

from msinttypes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
I was in doubt about this issue for a long time, but finally decided to not 
"fix" 
it. I looked at search results for "typedef __int8 int8_t" and it looks for me 
that 
this "fix" will break the same as fix, because a lot of other projects do not 
add "signed" to these typdefs.
So, again, I propose to fix this in SDL - either using these implementation 
instead 
of their own homebrew one or removing "signed" from them or any other way you 
find 
suitable.

Anyway, thanks for reporting this!

Original comment by [email protected] on 17 Jul 2008 at 6:17

  • Changed state: WontFix

from msinttypes.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.