]> git.lyx.org Git - lyx.git/blobdiff - src/support/tempname.C
remove !NEW_INSETS cruft
[lyx.git] / src / support / tempname.C
index 72316279418e6669e82a711e91c9f0acaf077570..9c7f3824fcf9a499e51551c8aa2a306625a3a613 100644 (file)
@@ -12,7 +12,9 @@ using std::endl;
 
 extern string system_tempdir;
 
-static inline
+namespace {
+
+inline
 int make_tempfile(char * templ) 
 {
 #ifdef HAVE_MKSTEMP
@@ -23,11 +25,16 @@ int make_tempfile(char * templ)
        ::mktemp(templ);
        return ::open(templ, O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
 #else
+#ifdef WITH_WARNINGS
 #warning FIX FIX FIX
 #endif
 #endif
+#endif
 }
-       
+
+} // namespace anon
+
+
 string const lyx::tempName(string const & dir, string const & mask)
 {
        string const tmpdir(dir.empty() ? system_tempdir : dir);