aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore/ecore.c
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-08-27 16:05:15 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-08-27 16:06:56 +0900
commit56983ed0d4facc26a99f51e30f3ce294f3f908f5 (patch)
treed64042c4ce346046bff1e3ad8ad396da1930f5cf /src/lib/ecore/ecore.c
parentecore: fix function call order to actually make mallinfo call work. (diff)
downloadefl-56983ed0d4facc26a99f51e30f3ce294f3f908f5.tar.gz
ecore: fix build without mallinfo.
Diffstat (limited to 'src/lib/ecore/ecore.c')
-rw-r--r--src/lib/ecore/ecore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore/ecore.c b/src/lib/ecore/ecore.c
index c563005796..0979e1a1cf 100644
--- a/src/lib/ecore/ecore.c
+++ b/src/lib/ecore/ecore.c
@@ -31,12 +31,14 @@
#include "Ecore.h"
#include "ecore_private.h"
-#if HAVE_MALLINFO
+#if defined HAVE_MALLINFO
#include <malloc.h>
+#endif
static Ecore_Version _version = { VMAJ, VMIN, VMIC, VREV };
EAPI Ecore_Version *ecore_version = &_version;
+#ifdef HAVE_MALLINFO
#define KEEP_MAX(Global, Local) \
if (Global < (Local)) \
Global = Local;