black magic for building with ffmpeg on windows

Originally committed to SVN as r2224.
This commit is contained in:
Karl Blomster 2008-07-03 15:22:25 +00:00
parent d1b8355ff2
commit d6ada6f0bd

View file

@ -45,12 +45,18 @@
/* avcodec.h uses INT64_C in a *single* place. This prolly breaks on Win32,
* but, well. Let's at least fix it for Linux.
*
*/
/* Update: this used to be commented out but is now needed on Windows.
* Not sure about Linux, so it's wrapped in an ifdef.
*/
#ifdef WIN32
#define __STDC_CONSTANT_MACROS 1
#include <stdint.h>
* - done in posix/defines.h
#endif /* WIN32 */
/* - done in posix/defines.h
*/
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>