From 648fa70e12f8701d336fc317398a6559e25002a3 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Thu, 26 Feb 2009 07:08:12 +0000 Subject: [PATCH] fix warning with mingw32ce (getenv not declared) fix compilation with mingw32ce (EAPI not correctly defined) SVN revision: 39237 --- legacy/ecore/src/lib/ecore/Ecore_Data.h | 10 +++++----- legacy/ecore/src/lib/ecore/ecore_getopt.c | 4 ++++ legacy/ecore/src/lib/ecore/ecore_value.c | 4 ++++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/legacy/ecore/src/lib/ecore/Ecore_Data.h b/legacy/ecore/src/lib/ecore/Ecore_Data.h index 2397ccb410..0daf6c1e5b 100644 --- a/legacy/ecore/src/lib/ecore/Ecore_Data.h +++ b/legacy/ecore/src/lib/ecore/Ecore_Data.h @@ -1,6 +1,11 @@ #ifndef _ECORE_DATA_H # define _ECORE_DATA_H +/* we need this for size_t */ +#include + +#include + #ifdef EAPI # undef EAPI #endif @@ -27,11 +32,6 @@ # endif #endif /* ! _WIN32 */ -/* we need this for size_t */ -#include - -#include - /** * @file Ecore_Data.h * @brief Contains threading, list, hash, debugging and tree functions. diff --git a/legacy/ecore/src/lib/ecore/ecore_getopt.c b/legacy/ecore/src/lib/ecore/ecore_getopt.c index 75c198c025..c8c2680a6a 100644 --- a/legacy/ecore/src/lib/ecore/ecore_getopt.c +++ b/legacy/ecore/src/lib/ecore/ecore_getopt.c @@ -11,6 +11,10 @@ #include #include +#ifdef _WIN32_WCE +# include +#endif + #include "Ecore.h" #include "Ecore_Getopt.h" diff --git a/legacy/ecore/src/lib/ecore/ecore_value.c b/legacy/ecore/src/lib/ecore/ecore_value.c index 4589fec8b5..ea098f683a 100644 --- a/legacy/ecore/src/lib/ecore/ecore_value.c +++ b/legacy/ecore/src/lib/ecore/ecore_value.c @@ -35,6 +35,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include #include +#ifdef _WIN32_WCE +# include +#endif + #include "Ecore.h" #include "Ecore_Data.h" #include "ecore_private.h"