From 65584bade167b72ebdfd34209c17abccfe364353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 15 May 2024 15:58:04 +0400 Subject: [PATCH] Fix GRAPHENE_CHECK_VERSION MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test is backward. (unfortunately, I spread that mistake in virgl too!) Signed-off-by: Marc-André Lureau --- include/graphene-version-macros.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/graphene-version-macros.h b/include/graphene-version-macros.h index 3907480..0844996 100644 --- a/include/graphene-version-macros.h +++ b/include/graphene-version-macros.h @@ -79,9 +79,9 @@ GRAPHENE_MICRO_VERSION) #define GRAPHENE_CHECK_VERSION(major,minor,micro) \ - ((major) > GRAPHENE_MAJOR_VERSION || \ - (major) == GRAPHENE_MAJOR_VERSION && (minor) > GRAPHENE_MINOR_VERSION || \ - (major) == GRAPHENE_MAJOR_VERSION && (minor) == GRAPHENE_MINOR_VERSION && (micro) >= GRAPHENE_MICRO_VERSION) + (GRAPHENE_MAJOR_VERSION > (major) || \ + GRAPHENE_MAJOR_VERSION == (major) && GRAPHENE_MINOR_VERSION > (minor) || \ + GRAPHENE_MAJOR_VERSION == (major) && GRAPHENE_MINOR_VERSION == (minor) && GRAPHENE_MICRO_VERSION >= (micro)) /* evaluates to the current stable release; for development cycles * this means the next stable target.