--- libgdiplus-5.4/src/font-orig.c	2017-11-10 16:14:00.016493100 -0500
+++ libgdiplus-5.4/src/font.c	2017-11-10 16:14:07.296425300 -0500
@@ -1078,12 +1078,8 @@
 	if (!memory)
 		return InvalidParameter;
 
-#ifdef WIN32
-	f = CreateTempFile (fontfile);
-#else
 	strcpy((char *) fontfile, "/tmp/ffXXXXXX");
 	f = mkstemp((char*)fontfile);
-#endif
 
 	if (f == -1)
 		return FileNotFound;
