cedric pushed a commit to branch master.
commit 0ed0d796117352a9c497deda51b55e50a3c7c5ec
Author: Cedric Bail <[email protected]>
Date: Thu Jun 27 15:27:30 2013 +0900
evas: prevent people from including header directly.
---
src/lib/evas/Evas_Common.h | 3 +++
src/lib/evas/Evas_Eo.h | 4 +++-
src/lib/evas/Evas_Legacy.h | 3 +++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/lib/evas/Evas_Common.h b/src/lib/evas/Evas_Common.h
index ba3fc82..35a6735 100644
--- a/src/lib/evas/Evas_Common.h
+++ b/src/lib/evas/Evas_Common.h
@@ -1,3 +1,6 @@
+#ifndef _EVAS_H
+# error You shall not include this header directly
+#endif
#define EVAS_VERSION_MAJOR 1
#define EVAS_VERSION_MINOR 8
diff --git a/src/lib/evas/Evas_Eo.h b/src/lib/evas/Evas_Eo.h
index 9a2fa92..4a6c08d 100644
--- a/src/lib/evas/Evas_Eo.h
+++ b/src/lib/evas/Evas_Eo.h
@@ -1,4 +1,6 @@
-#include <Eo.h>
+#ifndef _EVAS_H
+# error You shall not include this header directly
+#endif
EAPI extern const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_IN;
EAPI extern const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_OUT;
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index f359b02..c86cc77 100644
--- a/src/lib/evas/Evas_Legacy.h
+++ b/src/lib/evas/Evas_Legacy.h
@@ -1,3 +1,6 @@
+#ifndef _EVAS_H
+# error You shall not include this header directly
+#endif
/**
* @ingroup Evas_Canvas
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev