From: Patrice Bensoussan Date: Fri, 13 Apr 2007 07:19:12 +0000 (+0000) Subject: change atoll call to equivalent strtoll to fix compilation on Mac OS X 10.2 X-Git-Tag: v0.5~9315 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=946d3b12a14ba661a2cdeaa1e85af224310b5753;p=coroid%2Flibav_saccubus.git change atoll call to equivalent strtoll to fix compilation on Mac OS X 10.2 patch by Patrice Bensoussan \ patrice dot bensoussan chez free dot fr Original thread: date: 04/05/2007 07:56 PM subject: [Ffmpeg-devel] [PATCH] Fix broken compilation on Mac OS X 10.2 due to OPT_INT64 support Originally committed as revision 8724 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/cmdutils.c b/cmdutils.c index d5095cec8..74829c96c 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -99,7 +99,7 @@ unknown_opt: } else if (po->flags & OPT_INT) { *po->u.int_arg = atoi(arg); } else if (po->flags & OPT_INT64) { - *po->u.int64_arg = atoll(arg); + *po->u.int64_arg = strtoll(arg, (char **)NULL, 10); } else if (po->flags & OPT_FLOAT) { *po->u.float_arg = atof(arg); } else if (po->flags & OPT_FUNC2) {