[SDL] SDL 2.0 ABI locked

The simplest solution for those who are forced to use older compilers missing
the header is to add your own stdint.h, either by hand, or by copying an
existing one. That way, the problem of the missing header does not infect your
code. Your code can use the modern types yet remain portable to older compilers.
On 03/17/2013 01:21 PM, Forest Hale wrote:
> In the bizarro-land known as the real-world development cycle, a lot of people are still using Microsoft Visual Studio 2008, which lacks stdint.h (as I discovered when attempting to use ffmpeg headers
> in an app and wound up having to modify them all to not depend on stdint.h).
>> I agree stdint.h is a good thing, it just has complications in practice still.
>> On 03/17/2013 09:56 AM, Alexey Petruchik wrote:
>>> you'll see the SDL types are defined in terms of them.
>> That's why I think they are useless and can be painlessly removed :)
>> And it would be great if SDL will encourage everyone to use stdint.h
>> types.
>>>> On Sun, Mar 17, 2013 at 7:25 PM, Sam Lantinga <slouken at libsdl.org> wrote:
>>> Mostly because they're everywhere in SDL code. You're welcome to use the
>>> stdint types in your own code, and if you look in SDL_stdinc.h you'll see
>>> the SDL types are defined in terms of them.
>>>>>>>>> On Sun, Mar 17, 2013 at 9:19 AM, Alexey Petruchik <i100500 at gmail.com> wrote:
>>>>>>>> As conversation moved here I'll ask once again here. Why not to
>>>> replace SDL integer types (Uint8, ...) with <stdint.h> integer types?
>>>> This change will not break any binary compatibility because SDL
>>>> integer types are just typedefs for <stdint.h> integer types.
>>>>>>>> On Sat, Mar 16, 2013 at 5:28 AM, Jared Maddox <absinthdraco at gmail.com>
>>>> wrote:
>>>>>> Date: Fri, 15 Mar 2013 12:45:54 -0700
>>>>>> From: "neoaggelos" <neoaggelos at yahoo.gr>
>>>>>> To: sdl at lists.libsdl.org>>>>>> Subject: Re: [SDL] SDL 2.0 ABI locked
>>>>>> Message-ID: <1363376754.m2f.36087 at forums.libsdl.org>
>>>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>>>>>>>>>>>>>> Sik wrote:
>>>>>>> Doesn't that go against the ABI being locked though?
>>>>>>>>>>>>>> 2013/3/15, neoaggelos <neoaggelos at yahoo.gr>:
>>>>>>>>>>>>>>> Since SDL2 is not released yet, is it possible to change
>>>>>>>> SDL_GL_BindTexture
>>>>>>>> so that the created texture's coordinates range from 0 to 1 linearly
>>>>>>>> ?
>>>>>>>>>>>>>>>> Just an idea....
>>>>>>>>>>>>>>>>>>> Well, I know, but for someone that uses many textures in his programs
>>>>>> and
>>>>>> relies upon this
>>>>>> will most probably not be that happy.
>>>>>>>>>>>> Having a standard value will make it easier
>>>>>>>>>>>>>>>> None the less, the ABI is locked, AND this isn't something that SDL
>>>>> controls, so no. However, it should be somewhat simple to create an
>>>>> abstraction layer that does this for you. Don't go looking in SDL for
>>>>> it, but certainly the community would be perfectly happy if someone
>>>>> were to make a library that does this, and interfaces with SDL in the
>>>>> appropriate places.
>>>>> _______________________________________________
>>>>> SDL mailing list
>>>>>SDL at lists.libsdl.org>>>>>http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org>>>> _______________________________________________
>>>> SDL mailing list
>>>>SDL at lists.libsdl.org>>>>http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org>>>>>>>>>>>> _______________________________________________
>>> SDL mailing list
>>>SDL at lists.libsdl.org>>>http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org>>>>> _______________________________________________
>> SDL mailing list
>>SDL at lists.libsdl.org>>http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org>>>>