Enlightenment CVS committal

Author  : vapier
Project : e17
Module  : libs/emotion

Dir     : e17/libs/emotion/src/bin


Modified Files:
        emotion_test_main.c 


Log Message:
if ecore lacks both X and FB support, disable the test
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/emotion/src/bin/emotion_test_main.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- emotion_test_main.c 3 Oct 2005 13:53:18 -0000       1.12
+++ emotion_test_main.c 20 Oct 2005 05:05:52 -0000      1.13
@@ -1,3 +1,10 @@
+#include "config.h"
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
+#if defined(HAVE_ECORE_X_H) || defined(HAVE_ECORE_FB_H)
+
 #include <Evas.h>
 #include <Ecore.h>
 #ifndef FB_ONLY
@@ -10,12 +17,6 @@
 
 #include "Emotion.h"
 
-#include "config.h"
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
 typedef struct _Frame_Data Frame_Data;
 
 struct _Frame_Data
@@ -867,3 +868,10 @@
    return 0;
 }
 
+#else
+int main()
+{
+       puts("Could not find Ecore_X.h or Ecore_Fb.h so test is disabled");
+       return 0;
+}
+#endif




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to