[poppler] poppler/goo: gfile.cc,1.1.1.1,1.2

Albert Astals Cid aacid at freedesktop.org
Thu Feb 2 14:50:04 PST 2006


Update of /cvs/poppler/poppler/goo
In directory gabe:/tmp/cvs-serv24658/goo

Modified Files:
	gfile.cc 
Log Message:
don't use files to pass fonts to freetype


Index: gfile.cc
===================================================================
RCS file: /cvs/poppler/poppler/goo/gfile.cc,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- gfile.cc	3 Mar 2005 19:45:58 -0000	1.1.1.1
+++ gfile.cc	2 Feb 2006 22:50:01 -0000	1.2
@@ -489,6 +489,14 @@
     }
     (*name)->append("/XXXXXX")->append(ext);
     fd = mkstemps((*name)->getCString(), strlen(ext));
+#elif defined(HAVE_MKSTEMP)
+    if ((s = getenv("TMPDIR"))) {
+      *name = new GooString(s);
+    } else {
+      *name = new GooString("/tmp");
+    }
+    (*name)->append("/XXXXXX")->append(ext);
+    fd = mkstemp((*name)->getCString());
 #else
     if (!(s = tmpnam(NULL))) {
       return gFalse;



More information about the poppler mailing list