From 32b5bc02cc5212e367c7aa136d74be24161dfbb2 Mon Sep 17 00:00:00 2001 From: caro Date: Thu, 2 Jun 2011 19:20:39 +0000 Subject: [PATCH] Evas : evas_image_scalecache.c : usleep() might not be defined on Windows. Use Sleep() instead. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@59906 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_image_scalecache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/engines/common/evas_image_scalecache.c b/src/lib/engines/common/evas_image_scalecache.c index 92b9f08..9b846a3 100644 --- a/src/lib/engines/common/evas_image_scalecache.c +++ b/src/lib/engines/common/evas_image_scalecache.c @@ -416,7 +416,11 @@ evas_common_rgba_image_scalecache_prepare(Image_Entry *ie, RGBA_Image *dst __UNU while (slpt < 500000) { +#ifdef _WIN32 + Sleep(slp / 1000); +#else usleep(slp); +#endif slpt += slp; slp++; ret = LKT(im->cache.lock); -- 2.7.4