summaryrefslogtreecommitdiff
path: root/src/cairo-misc.c
diff options
context:
space:
mode:
authorJeff Muizelaar <jmuizelaar@mozilla.com>2009-02-13 12:15:23 -0500
committerJeff Muizelaar <jmuizelaar@mozilla.com>2009-02-13 12:15:23 -0500
commitb43e7aee98a8d69677f7e6d2584fe01f550f896b (patch)
treee1a6fb1a2d5863dfc7b638bb04338cbfc9d30434 /src/cairo-misc.c
parentfa66291c8862ed592fca469ceab0ac9b1d270835 (diff)
downloadcairo-b43e7aee98a8d69677f7e6d2584fe01f550f896b.tar.gz
[wince] We don't need cairo_win32_tmpfile on Windows CE
_cairo_win32_tmpfile() uses _open_osfhandle() which is not available on Windows CE. However, Windows CE doesn't have the permisions problems that necessitated _cairo_win32_tmpfile() in the first place so we can just use tmpfile() on Windows CE.
Diffstat (limited to 'src/cairo-misc.c')
-rw-r--r--src/cairo-misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c
index 0c9db901a..ab30327b4 100644
--- a/src/cairo-misc.c
+++ b/src/cairo-misc.c
@@ -610,10 +610,12 @@ _cairo_lround (double d)
#include <windows.h>
#include <io.h>
+#if !WINCE
/* tmpfile() replacement for Windows.
*
* On Windows tmpfile() creates the file in the root directory. This
- * may fail due to unsufficient privileges.
+ * may fail due to unsufficient privileges. However, this isn't a
+ * problem on Windows CE so we don't use it there.
*/
FILE *
_cairo_win32_tmpfile (void)
@@ -658,6 +660,7 @@ _cairo_win32_tmpfile (void)
return fp;
}
+#endif /* !WINCE */
#endif /* _WIN32 */