Commit 6d2877f4 authored by Måns Rullgård's avatar Måns Rullgård

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
parent e4836e3c
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "avutil.h" #include "avutil.h"
/* error handling */ /* 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 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. */ #define AVUNERROR(e) (-(e)) /**< Returns a POSIX error code from a library function error return value. */
#else #else
......
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