aboutsummaryrefslogtreecommitdiff
path: root/libsylph/utils.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-06 08:40:07 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-06 08:40:07 +0000
commit469c7a5cabfd8ad230bab13447a281ca296c5073 (patch)
tree02108beb90a012d1ce1adbbedd0e2062153963d7 /libsylph/utils.c
parent69501c1a570997de5597a7d297cc8167b986812c (diff)
added file system path info to folder prefs.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@625 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/utils.c')
-rw-r--r--libsylph/utils.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libsylph/utils.c b/libsylph/utils.c
index c8e3395b..f9ebba5a 100644
--- a/libsylph/utils.c
+++ b/libsylph/utils.c
@@ -2761,9 +2761,9 @@ gint change_file_mode_rw(FILE *fp, const gchar *file)
#endif
}
+#ifdef G_OS_WIN32
gchar *_s_tempnam(const gchar *dir, const gchar *prefix)
{
-#ifdef G_OS_WIN32
if (G_WIN32_HAVE_WIDECHAR_API()) {
wchar_t *wpath;
wchar_t *wprefix;
@@ -2832,10 +2832,8 @@ gchar *_s_tempnam(const gchar *dir, const gchar *prefix)
errno = save_errno;
return name;
}
-#else
- return tempnam(dir, prefix);
-#endif
}
+#endif
FILE *my_tmpfile(void)
{