error.h: test EDOM instead of EINVAL

C99 doesn't require EINVAL, only EDOM, EILSEQ, and ERANGE.

Originally committed as revision 22530 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2010-03-14 22:25:35 +00:00
parent e4836e3c07
commit 6d2877f47e
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
#include "avutil.h"
/* error handling */
#if EINVAL > 0
#if EDOM > 0
#define AVERROR(e) (-(e)) /**< Returns a negative error code from a POSIX error code, to return from library functions. */
#define AVUNERROR(e) (-(e)) /**< Returns a POSIX error code from a library function error return value. */
#else