зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1244773 - Fixed ffvpx compilation on mingw. r=jya
This commit is contained in:
Родитель
798200a916
Коммит
92367ea979
|
@ -7,11 +7,25 @@
|
|||
#ifndef MOZ_FFVPX_CONFIG_H
|
||||
#define MOZ_FFVPX_CONFIG_H
|
||||
#if defined(XP_WIN)
|
||||
// Avoid conflicts with mozilla-config.h
|
||||
#if !defined(_MSC_VER)
|
||||
#undef HAVE_DIRENT_H
|
||||
#undef HAVE_UNISTD_H
|
||||
#endif
|
||||
#if defined(HAVE_64BIT_BUILD)
|
||||
#include "config_win64.h"
|
||||
#else
|
||||
#include "config_win32.h"
|
||||
#endif
|
||||
// Adjust configure defines for GCC
|
||||
#if !defined(_MSC_VER)
|
||||
#if !defined(HAVE_64BIT_BUILD)
|
||||
#undef HAVE_MM_EMPTY
|
||||
#define HAVE_MM_EMPTY 0
|
||||
#endif
|
||||
#undef HAVE_LIBC_MSVCRT
|
||||
#define HAVE_LIBC_MSVCRT 0
|
||||
#endif
|
||||
#elif defined(XP_DARWIN)
|
||||
#if defined(HAVE_64BIT_BUILD)
|
||||
#include "config_darwin64.h"
|
||||
|
|
|
@ -51,7 +51,7 @@ SOURCES += [
|
|||
'utils.c',
|
||||
]
|
||||
|
||||
if CONFIG['_MSC_VER']:
|
||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
SOURCES += [
|
||||
'../compat/strtod.c'
|
||||
]
|
||||
|
|
Загрузка…
Ссылка в новой задаче