summaryrefslogtreecommitdiffstats
path: root/src/lib/eiotas_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eiotas_private.h')
-rw-r--r--src/lib/eiotas_private.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/eiotas_private.h b/src/lib/eiotas_private.h
index 7c8e9c8..64c0b90 100644
--- a/src/lib/eiotas_private.h
+++ b/src/lib/eiotas_private.h
@@ -37,6 +37,13 @@ void eiotas_iota_desinit(Eiotas_Iota *iota);
int eiotas_iota_init(Eiotas_Iota *iota, const char *name, Eiotas_Iota *parent, Eiotas_Type type);
+#undef PRINTPTR
+#ifdef __clang__
+# define PRINTPTR(_p) (unsigned int)_p
+#else
+# define PRINTPTR(_p) (_p)
+#endif
+
#define CHECK_PARENT() \
if(parent==NULL) { \
ERR("NULL parent not allowed"); \