Re: [Fink-devel] Internal issue with /sw/include/libavutil/common.h from libavutil50-dev

2011-10-02 Thread Peter O'Gorman
On 10/02/2011 02:36 PM, Alexander Hansen wrote:
> -BEGIN PGP SIGNED MESSAGE-

>  if ((a+0x8000u)&  ~UINT64_C(0x)) return (a>>63) ^
> 0x7FFF;
>  else return a;

UINT64_C is a macro defined in stdint.h.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdint.h.html#tag_13_47_03_04

Peter


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Internal issue with /sw/include/libavutil/common.h from libavutil50-dev

2011-10-02 Thread Alexander Hansen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I got the following error when I was trying to build octave-forge's
video package against ffmpeg-0.7.5 (it _really_ doesn't get along with
ffmpeg-0.8.4 due to API changes):

AVHandler.cc: In static member function 'static void
AVHandler::print_file_formats()':
AVHandler.cc:365: warning: 'first_oformat' is deprecated (declared at
/sw/include/libavformat/avformat.h:942)
/sw/include/libavutil/common.h: In function 'int32_t
av_clipl_int32_c(int64_t)':
/sw/include/libavutil/common.h:170: error: 'UINT64_C' was not declared
in this scope

And checking /sw/include/libavutil/common.h I found the relevant function:

static av_always_inline av_const int32_t av_clipl_int32_c(int64_t a)
{
if ((a+0x8000u) & ~UINT64_C(0x)) return (a>>63) ^
0x7FFF;
else return a;
}

Is it missing a types declaration somewhere?

My build attempt was on 10.5/PowerPC.

- -- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6IvSQACgkQB8UpO3rKjQ8PnQCdFhLDuOTKMwnPMBr+Ebmhafqy
AjAAni9+ixY13zDbKZ5BmLDsRxyePEH4
=rrEm
-END PGP SIGNATURE-

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel