| 1323 void |
1323 void |
| 1324 purple_prefs_rename(const char *oldname, const char *newname) |
1324 purple_prefs_rename(const char *oldname, const char *newname) |
| 1325 { |
1325 { |
| 1326 struct purple_pref *oldpref, *newpref; |
1326 struct purple_pref *oldpref, *newpref; |
| 1327 |
1327 |
| |
1328 /* win32dep.h causes rename to be defined as wpurple_rename, so we need to undefine it here */ |
| |
1329 #if defined(_WIN32) && defined(rename) |
| |
1330 #undef rename |
| |
1331 #endif |
| |
1332 |
| 1328 PURPLE_PREFS_UI_OP_CALL(rename, oldname, newname); |
1333 PURPLE_PREFS_UI_OP_CALL(rename, oldname, newname); |
| 1329 |
1334 |
| 1330 oldpref = find_pref(oldname); |
1335 oldpref = find_pref(oldname); |
| 1331 |
1336 |
| 1332 /* it's already been renamed, call off the dogs */ |
1337 /* it's already been renamed, call off the dogs */ |