From 6d2877f47e83872da9aa1dad3172ba610d3c65d0 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Sun, 14 Mar 2010 22:25:35 +0000 Subject: 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 --- libavutil/error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavutil/error.h') diff --git a/libavutil/error.h b/libavutil/error.h index 8a53b906a2..02dbc6a73d 100644 --- a/libavutil/error.h +++ b/libavutil/error.h @@ -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 -- cgit v1.2.3