From 0ed0d796117352a9c497deda51b55e50a3c7c5ec Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Thu, 27 Jun 2013 15:27:30 +0900 Subject: [PATCH] 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 ba3fc8271c..35a673521b 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 9a2fa9213f..4a6c08de54 100644 --- a/src/lib/evas/Evas_Eo.h +++ b/src/lib/evas/Evas_Eo.h @@ -1,4 +1,6 @@ -#include +#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 f359b0218b..c86cc774ca 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