Просмотр исходного кода

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
Måns Rullgård 15 лет назад
Родитель
Сommit
6d2877f47e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      libavutil/error.h

+ 1 - 1
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