evas: Let fix the mess in our header instead of sweeping it under the carpet.
authorCedric Bail <cedric.bail@samsung.com>
Fri, 22 Nov 2013 01:49:48 +0000 (10:49 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Fri, 22 Nov 2013 02:06:07 +0000 (11:06 +0900)
This also does fix the build on Windows.

This reverts commit 86c08e6985d5b213c6227d7cb7bc73177aade66e.

src/lib/evas/common/evas_font_load.c
src/lib/evas/common/evas_font_ot.c
src/lib/evas/common/evas_font_ot.h
src/lib/evas/common/evas_text_utils.c
src/lib/evas/include/evas_common_private.h

index c6d6ce3eda0a480b6541e1509e4b4a8a275f2ea7..59b8146a63980fbb8ef688b511b25e0b3129bfd8 100644 (file)
@@ -4,15 +4,13 @@
 
 #include <assert.h>
 
-#include "evas_font_ot.h" /* USE_HARFBUZZ */
+#include "evas_common_private.h"
+#include "evas_private.h"
 
 #ifdef USE_HARFBUZZ
 # include <hb.h>
 #endif
 
-#include "evas_common_private.h"
-#include "evas_private.h"
-
 #include "evas_font_private.h" /* for Frame-Queuing support */
 #include <freetype/tttables.h> /* Freetype2 OS/2 font table. */
 
index 31383a4ebf9b58a2352bffd2f148383a3e6ab78d..a5fe5b2920805af877ca2445ed50a47d1c87c3b6 100644 (file)
@@ -1,13 +1,10 @@
-#include "evas_font_ot.h"
+#include "evas_common_private.h"
 
 #ifdef USE_HARFBUZZ
 # include <hb.h>
 # include <hb-ft.h>
 #endif
 
-#include "evas_common_private.h"
-
-#include <Eina.h>
 #include "evas_font_private.h"
 
 #ifdef USE_HARFBUZZ
index 6398c92bea603d554bbd898782690f8601ae8150..6f667311e15abf0f8410e61f273e352d3bbb942f 100644 (file)
@@ -1,10 +1,6 @@
 #ifndef _EVAS_FONT_OT_H
 # define _EVAS_FONT_OT_H
 
-# ifdef HAVE_CONFIG_H
-#  include "config.h"
-# endif
-
 # ifdef HAVE_HARFBUZZ
 #  define OT_SUPPORT
 #  define USE_HARFBUZZ
@@ -17,8 +13,6 @@ typedef struct _Evas_Font_OT_Info Evas_Font_OT_Info;
 typedef void *Evas_Font_OT_Info;
 # endif
 
-# include "Evas.h"
-
 # ifdef OT_SUPPORT
 struct _Evas_Font_OT_Info
 {
index 14d09486b9643a96a9f1c3957f8c4c54d027430d..fe171015083d9bade54b0d1210f1e84cd4a01c20 100644 (file)
@@ -3,7 +3,6 @@
 #include "evas_text_utils.h"
 #include "language/evas_bidi_utils.h"
 #include "language/evas_language_utils.h"
-#include "evas_font_ot.h"
 
 #define PROPS_CHANGE(Props) Props->changed = EINA_TRUE;
 
index 16b7b4046815ed9bc54b720e2578b260efa1de78..4f48fd4aaf0e55fc1d255cca21ae9c6a93de9019 100644 (file)
@@ -1,9 +1,9 @@
 #ifndef EVAS_COMMON_H
 #define EVAS_COMMON_H
 
-//#ifdef HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include "config.h"  /* so that EAPI in Evas.h is correctly defined */
-//#endif
+#endif
 
 #ifdef STDC_HEADERS
 # include <stdlib.h>