[Ffmpeg-devel] [PATCH] Fix broken compilation on Mac OS X 10.2 due to OPT_INT64 support

Baptiste Coudurier baptiste.coudurier
Thu Apr 5 20:28:08 CEST 2007


Michael Niedermayer wrote:
> Hi
> 
> On Thu, Apr 05, 2007 at 06:56:48PM +0100, Patrice Bensoussan wrote:
>> Hello,
>>
>> The recent patch to support OPT_INT64 option broke the compilation on  
>> Mac OS X 10.2. The reason for this is that atoll() is not available  
>> on Mac OS X 10.2 (it's only available on 10.3 and later versions).
>>
>> From the man page:
>>
>>      The atoll() function converts the initial portion of the string  
>> pointed
>>      to by nptr to long long integer representation.
>>
>>      It is equivalent to:
>>
>>            strtoll(nptr, (char **)NULL, 10);
>>
>> Simple patch attached to fix the issue.
> 
> probably ok
> 

my man says:

atoll: SVr4, POSIX.1-2001, 4.3BSD, C99.  C89 and POSIX.1-1996 include
the functions atoi() and atol() only.  atoq(3) is a GNU extension.

strtol() conforms to SVr4, 4.3BSD, C99 and POSIX.1-2001, and strtoll()
to C99 and POSIX.1-2001.

maybe someone can test on *BSD/Mingw ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-devel mailing list