From: Enlightenment S. <no-...@en...> - 2011-11-21 21:36:36
|
Log: Elm: fix warning on Windows Author: caro Date: 2011-11-21 13:36:26 -0800 (Mon, 21 Nov 2011) New Revision: 65501 Trac: http://trac.enlightenment.org/e/changeset/65501 Modified: trunk/elementary/src/lib/els_icon.c Modified: trunk/elementary/src/lib/els_icon.c =================================================================== --- trunk/elementary/src/lib/els_icon.c 2011-11-21 20:56:22 UTC (rev 65500) +++ trunk/elementary/src/lib/els_icon.c 2011-11-21 21:36:26 UTC (rev 65501) @@ -2,6 +2,12 @@ #include "elm_priv.h" #include "els_icon.h" +#ifdef _WIN32 +# define FMT_SIZE_T "%Iu" +#else +# define FMT_SIZE_T "%zu" +#endif + typedef struct _Smart_Data Smart_Data; struct _Smart_Data @@ -108,7 +114,7 @@ evas_object_image_preload(sd->obj, EINA_FALSE); if (evas_object_image_load_error_get(sd->obj) != EVAS_LOAD_ERROR_NONE) { - ERR("Things are going bad for some random %zu byte chunk of memory (%p)", size, sd->obj); + ERR("Things are going bad for some random " FMT_SIZE_T " byte chunk of memory (%p)", size, sd->obj); return EINA_FALSE; } _smart_reconfigure(sd); |