forked from mia/Aegisub
black magic for building with ffmpeg on windows
Originally committed to SVN as r2224.
This commit is contained in:
parent
d1b8355ff2
commit
d6ada6f0bd
1 changed files with 8 additions and 2 deletions
|
@ -45,12 +45,18 @@
|
||||||
|
|
||||||
/* avcodec.h uses INT64_C in a *single* place. This prolly breaks on Win32,
|
/* avcodec.h uses INT64_C in a *single* place. This prolly breaks on Win32,
|
||||||
* but, well. Let's at least fix it for Linux.
|
* 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
|
#define __STDC_CONSTANT_MACROS 1
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
* - done in posix/defines.h
|
#endif /* WIN32 */
|
||||||
|
/* - done in posix/defines.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#include <libavformat/avformat.h>
|
#include <libavformat/avformat.h>
|
||||||
|
|
Loading…
Reference in a new issue