changeset 886:d4062b438548 libavutil

error.h: test EDOM instead of EINVAL C99 doesn't require EINVAL, only EDOM, EILSEQ, and ERANGE.
author mru
date Sun, 14 Mar 2010 22:25:35 +0000
parents 311037a6cb91
children 25135d2dca10
files error.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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