[FFmpeg-devel] [PATCH] atoll() replacement for WinCE
Wed Jul 15 18:29:02 CEST 2009
2009/7/15 M?ns Rullg?rd <mans at mansr.com>:
> Martin Storsj? <martin at martin.st> writes:
>> On Wed, 15 Jul 2009, M?ns Rullg?rd wrote:
>>> > That kind of check produces a warning on 64-bit architectures, though:
>>> > warning: cast from pointer to integer of different size
>>> New idea:
>>> ? ? return !functionThatDoesNotExist;
>>> Should be warning-free.
>> No, unfortunately not:
>> test.c:3: warning: the address of 'functionThatDoesntExist', will always
>> evaluate as 'true'
>> And the compiler optimizes the whole access away...
> Oh damn. ?Use (long) then. ?That should be warning-free on most
I haven't tested, but that should throw a warning in mingw-w64. What's
so bad about including stdint.h?
More information about the ffmpeg-devel