Browse Source

Avoid warnings from AV_GCC_VERSION_AT_LEAST with some non-gcc compilers

Originally committed as revision 17508 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Måns Rullgård 16 years ago
parent
commit
03bc0f3744
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      libavutil/common.h

+ 5
- 1
libavutil/common.h View File

@@ -35,7 +35,11 @@
#include <stdlib.h>
#include <string.h>

#define AV_GCC_VERSION_AT_LEAST(x,y) (defined(__GNUC__) && (__GNUC__ > x || __GNUC__ == x && __GNUC_MINOR__ >= y))
#ifdef __GNUC__
# define AV_GCC_VERSION_AT_LEAST(x,y) (__GNUC__ > x || __GNUC__ == x && __GNUC_MINOR__ >= y)
#else
# define AV_GCC_VERSION_AT_LEAST(x,y) 0
#endif

#ifndef av_always_inline
#if AV_GCC_VERSION_AT_LEAST(3,1)


Loading…
Cancel
Save