From cc996d8804cdfb9889fee26f8d1885555c16f66f Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 29 Oct 2005 09:14:41 +0000 Subject: [PATCH] If we are checking the DirectFB version, we should make sure directfb_version.h is included. SVN revision: 18095 --- legacy/evas/src/bin/evas_directfb_window.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/bin/evas_directfb_window.c b/legacy/evas/src/bin/evas_directfb_window.c index 9908a80719..e183e5db15 100644 --- a/legacy/evas/src/bin/evas_directfb_window.c +++ b/legacy/evas/src/bin/evas_directfb_window.c @@ -35,6 +35,8 @@ #include #include +#include + #include "config.h" #include "Evas.h" #include "Evas_Engine_DirectFB.h" @@ -75,7 +77,8 @@ int main( int argc, char *argv[] ) IDirectFBEventBuffer *buffer; DFBDisplayLayerConfig layer_config; -#if (DIRECTFB_MAJOR_VERSION == 0) && (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23) + +#if ((DIRECTFB_MAJOR_VERSION == 0) && (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23)) DFBCardCapabilities caps; #else DFBGraphicsDeviceDescription caps; @@ -92,7 +95,7 @@ int main( int argc, char *argv[] ) DFBCHECK(DirectFBInit( &argc, &argv )); DFBCHECK(DirectFBCreate( &dfb )); -#if (DIRECTFB_MAJOR_VERSION == 0) && (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23) +#if ((DIRECTFB_MAJOR_VERSION == 0) && (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23)) dfb->GetCardCapabilities( dfb, &caps ); #else dfb->GetDeviceDescription( dfb, &caps );