fix nasty ifdef bug

This commit is contained in:
Berke Viktor 2011-11-30 07:27:58 +01:00
parent 845c4915bf
commit 2fac353c85

View File

@ -1612,11 +1612,10 @@ xchat_set_plugin_pref (xchat_plugin *pl, char *var, char *value)
write (fhOut, buffer, strlen (buffer)); write (fhOut, buffer, strlen (buffer));
close (fhOut); close (fhOut);
#ifdef WIN32
sprintf (buffer, "%s/%s", get_xdir_fs (), confname); sprintf (buffer, "%s/%s", get_xdir_fs (), confname);
#ifdef WIN32
unlink (buffer); unlink (buffer);
#endif #endif
sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp); sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
if (rename (buffer_tmp, buffer) == 0) if (rename (buffer_tmp, buffer) == 0)
{ {
@ -1658,11 +1657,10 @@ xchat_set_plugin_pref (xchat_plugin *pl, char *var, char *value)
close (fhOut); close (fhOut);
#ifdef WIN32
sprintf (buffer, "%s/%s", get_xdir_fs (), confname); sprintf (buffer, "%s/%s", get_xdir_fs (), confname);
#ifdef WIN32
unlink (buffer); unlink (buffer);
#endif #endif
sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp); sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
if (rename (buffer_tmp, buffer) == 0) if (rename (buffer_tmp, buffer) == 0)