Evas: remove Evil.h when not needed and use evil_private when needed
authorVincent Torri <vincent.torri@gmail.com>
Mon, 20 May 2019 12:46:02 +0000 (08:46 -0400)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 30 May 2019 08:17:52 +0000 (17:17 +0900)
Test Plan: compilation

Reviewers: zmike, raster, cedric

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8921

25 files changed:
src/lib/evas/cache/evas_cache_image.c
src/lib/evas/cache/evas_preload.c
src/lib/evas/canvas/evas_async_events.c
src/lib/evas/canvas/evas_font_dir.c
src/lib/evas/canvas/evas_main.c
src/lib/evas/common/evas_image_scalecache.c
src/lib/evas/common/language/evas_language_utils.c
src/lib/evas/file/evas_path.c
src/lib/evas/include/evas_common_private.h
src/modules/evas/engines/software_generic/evas_engine.c
src/modules/evas/engines/software_generic/evas_native_dmabuf.c
src/modules/evas/engines/software_generic/evas_native_tbm.c
src/modules/evas/image_loaders/bmp/evas_image_load_bmp.c
src/modules/evas/image_loaders/generic/evas_image_load_generic.c
src/modules/evas/image_loaders/ico/evas_image_load_ico.c
src/modules/evas/image_loaders/jp2k/evas_image_load_jp2k.c
src/modules/evas/image_loaders/pmaps/evas_image_load_pmaps.c
src/modules/evas/image_loaders/png/evas_image_load_png.c
src/modules/evas/image_loaders/psd/evas_image_load_psd.c
src/modules/evas/image_loaders/tga/evas_image_load_tga.c
src/modules/evas/image_loaders/tiff/evas_image_load_tiff.c
src/modules/evas/image_loaders/wbmp/evas_image_load_wbmp.c
src/modules/evas/image_loaders/webp/evas_image_load_webp.c
src/modules/evas/image_loaders/xpm/evas_image_load_xpm.c
src/modules/evas/image_savers/png/evas_image_save_png.c

index 4d28ad5..615335c 100644 (file)
@@ -8,10 +8,6 @@
 #include <sys/stat.h>
 #include <errno.h>
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"
 
index 921b03c..b2b2e98 100644 (file)
@@ -1,9 +1,6 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#ifdef _WIN32
-# include <Evil.h>
-#endif
 #ifdef __linux__
 # include <sys/syscall.h>
 #endif
index c27c23b..9e19c3d 100644 (file)
@@ -7,7 +7,8 @@
 
 #ifdef _WIN32
 # include <winsock2.h>
-#endif /* ! _WIN32 */
+# include <evil_private.h> /* fcntl */
+#endif
 
 #include <fcntl.h>
 
index ae3b422..55c18dd 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 
 #ifdef _WIN32
-# include <Evil.h>
+# include <evil_private.h> /* evil_path_is_absolute */
 #endif
 
 #include <Eet.h>
index 7986dac..4d17218 100644 (file)
 
 #include "eo_internal.h"
 
+#ifdef _WIN32
+# include <evil_private.h> /* evil_init evil_shutdown */
+#endif
+
 #include <Ecore.h>
 
 #define EFL_INTERNAL_UNSTABLE
index 5bf8e89..5ca64b1 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 
 #ifdef _WIN32
-# include <Evil.h>
+# include <windows.h>
 #endif
 
 #include <assert.h>
@@ -32,7 +32,7 @@ struct _ScaleitemKey
    int src_x, src_y;
    unsigned int src_w, src_h;
    unsigned int dst_w, dst_h;
-   Eina_Bool smooth : 1;   
+   Eina_Bool smooth : 1;
 };
 
 struct _Scaleitem
index 5a8e173..4862a1e 100644 (file)
 # define dgettext(domain, x) (x)
 #endif
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include <Eina.h>
 
 #include "evas_language_utils.h"
index 19eabe4..ef3d439 100644 (file)
@@ -17,7 +17,7 @@
 #include <sys/param.h>
 
 #ifdef _WIN32
-# include <Evil.h>
+# include <evil_private.h> /* evil_path_is_absolute */
 #endif
 
 #include "evas_common_private.h"
index 5e5c1a8..9616f06 100755 (executable)
 #include <stdint.h>
 #include <unistd.h>
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #ifdef HAVE_ESCAPE
 # include <Escape.h>
 #endif
index 40c0b45..fdf7d69 100755 (executable)
 # include <dlfcn.h>      /* dlopen,dlclose,etc */
 #endif
 
+#ifdef _WIN32
+# include <evil_private.h> /* dlsym */
+#endif
+
 #if defined HAVE_DLSYM
 # define EVAS_GL 1
 # define EVAS_GL_NO_GL_H_CHECK 1
index 6033c1c..c71e1b2 100644 (file)
@@ -4,6 +4,8 @@
 
 #if defined HAVE_DLSYM && ! defined _WIN32
 # include <dlfcn.h>      /* dlopen,dlclose,etc */
+#elif _WIN32
+# include <evil_private.h> /* dlopen dlclose dlsym */
 #else
 # warning native_dmabuf should not get compiled if dlsym is not found on the system!
 #endif
index c727881..ad241a8 100755 (executable)
@@ -4,6 +4,8 @@
 
 #if defined HAVE_DLSYM && ! defined _WIN32
 # include <dlfcn.h>      /* dlopen,dlclose,etc */
+#elif _WIN32
+# include <evil_private.h> /* dlopen dlclose dlsym */
 #else
 # warning native_tbm should not get compiled if dlsym is not found on the system!
 #endif
index a003a92..43dac5b 100644 (file)
@@ -4,10 +4,6 @@
 
 #include <stdio.h>
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include <math.h>
 
 #include "evas_common_private.h"
index 594c6b6..ec4917f 100644 (file)
@@ -2,10 +2,6 @@
 # include "config.h"
 #endif
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"
 
index 53ce8e8..520ef06 100644 (file)
@@ -4,10 +4,6 @@
 
 #include <stdio.h>
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"
 
index 6b9e4ec..dd9af05 100644 (file)
@@ -4,10 +4,6 @@
 
 #include <stdio.h>
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include <openjpeg.h>
 
 #include "Evas_Loader.h"
index f70606a..b9c383c 100644 (file)
@@ -2,10 +2,6 @@
 # include <config.h>
 #endif
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"
 
index 6d0c1e9..529565a 100644 (file)
@@ -6,10 +6,6 @@
 #include <png.h>
 #include <setjmp.h>
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"
 
index c1306b1..d8f15b3 100644 (file)
 # include <netinet/in.h>
 #endif
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"
 
index a62c9f0..344c363 100644 (file)
@@ -6,10 +6,6 @@
 #include <sys/types.h>
 #include <fcntl.h>
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"
 
index d7e564d..e07206b 100644 (file)
@@ -7,10 +7,6 @@
 #include <unistd.h>
 #include <tiffio.h>
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"
 
index 4a3ae77..af539a0 100644 (file)
@@ -4,10 +4,6 @@
 
 #include <stdio.h>
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"
 
index aa0a6ca..e3f97bb 100644 (file)
@@ -6,10 +6,6 @@
 #include <string.h>
 #include <webp/decode.h>
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"
 
index 0fa150d..4bf08b5 100644 (file)
@@ -2,10 +2,6 @@
 # include <config.h>
 #endif
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"
 
index bd6b5c3..1aeec12 100644 (file)
@@ -6,10 +6,6 @@
 #include <png.h>
 #include <setjmp.h>
 
-#ifdef _WIN32
-# include <Evil.h>
-#endif
-
 #include "evas_common_private.h"
 #include "evas_private.h"