# HG changeset patch # User mru # Date 1268605535 0 # Node ID d4062b4385486e209648a1067cc681b8418b5d4f # Parent 311037a6cb91b2bcd50ab9e5c09cc1a25e1e46cb error.h: test EDOM instead of EINVAL C99 doesn't require EINVAL, only EDOM, EILSEQ, and ERANGE. diff -r 311037a6cb91 -r d4062b438548 error.h --- a/error.h Sun Mar 14 22:25:31 2010 +0000 +++ b/error.h Sun Mar 14 22:25:35 2010 +0000 @@ -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