cxx: Fix evas compile test and Evas.hh
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 23 Nov 2017 05:43:06 +0000 (14:43 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 5 Dec 2017 01:14:03 +0000 (10:14 +0900)
The c++ header was checking the wrong header guard. Fixing that would
break the compilation test, as it was doing the wrong thing. Also I
think config.h should not be included for compilation tests. This should
make things slightly better.

src/lib/evas/Evas.hh
src/tests/evas_cxx/cxx_compile_test.cc

index 893f895..064d8c1 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef EVAS_HH
 #define EVAS_HH
 
-#if defined(EVAS_H)
+#if defined(_EVAS_H)
 #error "Do not include Evas C API headers before including Evas.hh"
 #endif
 
index ba354de..90527ad 100644 (file)
@@ -1,13 +1,5 @@
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <Evas.h>
 #include <Evas.hh>
 
-#include <iostream>
-
 int main()
 {
    return 0;