File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,8 @@ extern "C" {
8585 ((AVIF_VERSION_MAJOR * 1000000 ) + (AVIF_VERSION_MINOR * 10000 ) + (AVIF_VERSION_PATCH * 100 ) + AVIF_VERSION_DEVEL)
8686
8787typedef int avifBool;
88- enum avifTrueFalse_
89- {
90- AVIF_FALSE = 0 ,
91- AVIF_TRUE = 1
92- };
88+ #define AVIF_TRUE 1
89+ #define AVIF_FALSE 0
9390
9491#define AVIF_DIAGNOSTICS_ERROR_BUFFER_SIZE 256
9592
Original file line number Diff line number Diff line change @@ -62,14 +62,8 @@ static inline void avifBreakOnError()
6262// AVIF_ASSERT_OR_RETURN() can be used instead of assert() for extra security in release builds.
6363#ifdef NDEBUG
6464#define AVIF_ASSERT_OR_RETURN (A ) AVIF_CHECKERR((A), AVIF_RESULT_INTERNAL_ERROR)
65- #define AVIF_ASSERT_NOT_REACHED_OR_RETURN \
66- do { \
67- avifBreakOnError(); \
68- return AVIF_RESULT_INTERNAL_ERROR; \
69- } while (0)
7065#else
7166#define AVIF_ASSERT_OR_RETURN (A ) assert(A)
72- #define AVIF_ASSERT_NOT_REACHED_OR_RETURN assert(0);
7367#endif
7468
7569// ---------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments