mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-19 21:41:42 +01:00
[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.
This commit is contained in:
parent
fa66291c88
commit
b43e7aee98
2 changed files with 5 additions and 2 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
|
||||
CAIRO_BEGIN_DECLS
|
||||
|
||||
#ifdef _WIN32
|
||||
#if _WIN32 && !WINCE // we don't have to worry about permissions on WINCE
|
||||
cairo_private FILE *
|
||||
_cairo_win32_tmpfile (void);
|
||||
#define tmpfile() _cairo_win32_tmpfile()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue