Commit 166ed2dd authored by Laurent Aimar's avatar Laurent Aimar

* mc-c.c compilation fix for gcc >= 3.3


git-svn-id: svn://svn.videolan.org/x264/trunk@3 df754926-b1dd-0310-bc7b-ec298dee348c
parent 602c87d5
......@@ -2,7 +2,7 @@
* mc.c: h264 encoder library (Motion Compensation)
*****************************************************************************
* Copyright (C) 2003 Laurent Aimar
* $Id: mc-c.c,v 1.1 2004/06/03 19:27:07 fenrir Exp $
* $Id: mc-c.c,v 1.2 2004/06/09 19:35:07 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
......@@ -30,8 +30,13 @@
#include "../clip1.h"
#include "mc.h"
#define UNUSED_UINT64( foo ) \
static const uint64_t foo __asm__ (#foo) __attribute__((unused))
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)
#define USED_UINT64(foo) \
static const uint64_t foo __asm__ (#foo) __attribute__((used))
#else
#define USED_UINT64(foo) \
static const uint64_t foo __asm__ (#foo) __attribute__((unused))
#endif
UNUSED_UINT64( x264_w0x10 ) = 0x0010001000100010ULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment