From 9800ae335a109d959f246bb44639a16f7779acc1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Aug 2006 13:13:41 +0000 Subject: [PATCH] added wxCHECK_DFB_VERSION() macro git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dfb/private.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/wx/dfb/private.h b/include/wx/dfb/private.h index 0c82d8ea0f..a613c53b4a 100644 --- a/include/wx/dfb/private.h +++ b/include/wx/dfb/private.h @@ -15,6 +15,7 @@ #include "wx/log.h" #include +#include #include "wx/dfb/ifacehelpers.h" @@ -152,5 +153,17 @@ WXDFB_DEFINE_EVENT_WRAPPER(DFBWindowEvent) #define wxDFB_EVENT_TIMESTAMP(event) \ ((event).timestamp.tv_sec * 1000 + (event).timestamp.tv_usec / 1000) +/** + Check if DirectFB library version is at least @a major.@a minor.@a release. + + @sa wxCHECK_VERSION + */ +#define wxCHECK_DFB_VERSION(major,minor,release) \ + (DIRECTFB_MAJOR_VERSION > (major) || \ + (DIRECTFB_MAJOR_VERSION == (major) && \ + DIRECTFB_MINOR_VERSION > (minor)) || \ + (DIRECTFB_MAJOR_VERSION == (major) && \ + DIRECTFB_MINOR_VERSION == (minor) && \ + DIRECTFB_MICRO_VERSION >= (release))) #endif // _WX_DFB_PRIVATE_H_ -- 2.45.2