summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c01bf42)
Makes the printf() family functions on MinGW use the correct C99 POSIX
versions instead of the broken pre-VS2015 Microsoft ones.
Also allows us to get rid of some _GNU_SOURCE and _ISOC99_SOURCE defines.
* For more information, contact us at licensing@x264.com.
*****************************************************************************/
* For more information, contact us at licensing@x264.com.
*****************************************************************************/
-#define _GNU_SOURCE // for sched_getaffinity
#include "common.h"
#include "cpu.h"
#include "common.h"
#include "cpu.h"
* For more information, contact us at licensing@x264.com.
*****************************************************************************/
* For more information, contact us at licensing@x264.com.
*****************************************************************************/
#include "common.h"
#define SHIFT(x,s) ((s)<=0 ? (x)<<-(s) : ((x)+(1<<((s)-1)))>>(s))
#include "common.h"
#define SHIFT(x,s) ((s)<=0 ? (x)<<-(s) : ((x)+(1<<((s)-1)))>>(s))
if [ $compiler_style = GNU ]; then
if cc_check '' -std=gnu99 'for( int i = 0; i < 9; i++ );' ; then
if [ $compiler_style = GNU ]; then
if cc_check '' -std=gnu99 'for( int i = 0; i < 9; i++ );' ; then
- CFLAGS="$CFLAGS -std=gnu99"
+ CFLAGS="$CFLAGS -std=gnu99 -D_POSIX_C_SOURCE=200112L -D_GNU_SOURCE"
elif cc_check '' -std=c99 'for( int i = 0; i < 9; i++ );' ; then
CFLAGS="$CFLAGS -std=c99 -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE"
elif ! cc_check '' '' 'for( int i = 0; i < 9; i++ );' ; then
elif cc_check '' -std=c99 'for( int i = 0; i < 9; i++ );' ; then
CFLAGS="$CFLAGS -std=c99 -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE"
elif ! cc_check '' '' 'for( int i = 0; i < 9; i++ );' ; then
* For more information, contact us at licensing@x264.com.
*****************************************************************************/
* For more information, contact us at licensing@x264.com.
*****************************************************************************/
-#define _ISOC99_SOURCE
-
#include "common/common.h"
#include "macroblock.h"
#include "me.h"
#include "common/common.h"
#include "macroblock.h"
#include "me.h"
* For more information, contact us at licensing@x264.com.
*****************************************************************************/
* For more information, contact us at licensing@x264.com.
*****************************************************************************/
#undef NDEBUG // always check asserts, the speed effect is far too small to disable them
#include "common/common.h"
#undef NDEBUG // always check asserts, the speed effect is far too small to disable them
#include "common/common.h"
#endif
#include <signal.h>
#endif
#include <signal.h>
#include <getopt.h>
#include "common/common.h"
#include "x264cli.h"
#include <getopt.h>
#include "common/common.h"
#include "x264cli.h"