Cleanup warnings when building without support for the X fixes extension.
authorningerso <ningerso>
Mon, 11 Dec 2006 06:33:42 +0000 (06:33 +0000)
committerningerso <ningerso@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 11 Dec 2006 06:33:42 +0000 (06:33 +0000)
SVN revision: 27415

legacy/ecore/src/lib/ecore_x/ecore_x_fixes.c

index 4a61092..d4645a7 100644 (file)
@@ -6,7 +6,9 @@
 #include "Ecore_X.h"
 
 static int _fixes_available;
+#ifdef ECORE_XFIXES
 static int _fixes_major, _fixes_minor;
+#endif
 
 void
 _ecore_x_fixes_init(void)
@@ -24,6 +26,7 @@ _ecore_x_fixes_init(void)
 #endif
 }
 
+#ifdef ECORE_XFIXES
 /* I don't know what to call this function. */
 static XRectangle *
 _ecore_x_rectangle_ecore_to_x(Ecore_X_Rectangle *rects, int num)
@@ -63,6 +66,7 @@ _ecore_x_rectangle_x_to_ecore(XRectangle *xrect, int num)
      }
    return rects;
 }
+#endif
 
 EAPI Ecore_X_Region
 ecore_x_region_new(Ecore_X_Rectangle *rects, int num)