diff --git a/ChangeLog b/ChangeLog index bfcd20340..a11bb4f30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-08-30 Wolfgang Sourdeau + + * Tools/SOGoToolRemoveDoubles.m, UI/MailerUI/UIxMailFormatter.m: + adapted classes to use "NSInteger" and "NSUInteger" instead of + "int" and "unsigned int" for compatibility with versions of + GNUstep base >= 1.20. + 2010-08-27 Francis Lachapelle * UI/WebServerResources/SchedulerUI.js (newBaseEventDIV): now adds diff --git a/Tools/SOGoToolRemoveDoubles.m b/Tools/SOGoToolRemoveDoubles.m index b268177e9..16c69aec3 100644 --- a/Tools/SOGoToolRemoveDoubles.m +++ b/Tools/SOGoToolRemoveDoubles.m @@ -189,7 +189,13 @@ NSString *tableName, *quickTableName, *currentRecordName; NSEnumerator *recordsEnum; - fprintf (stderr, "Removing %d records...\n", [recordNames count]); + fprintf (stderr, +#if GS_64BIT_OLD + "Removing %d records...\n", +#else + "Removing %ld records...\n", +#endif + [recordNames count]); channel = [folder acquireStoreChannel]; context = [channel adaptorContext]; @@ -469,11 +475,21 @@ if ([recordsToRemove count]) { [self removeRecords: recordsToRemove fromFolder: folder]; - fprintf (stderr, "Removed %d records from %d.\n", + fprintf (stderr, +#if GS_64BIT_OLD + "Removed %d records from %d.\n", +#else + "Removed %ld records from %ld.\n", +#endif [recordsToRemove count], [records count]); } else - fprintf (stderr, "No record to remove. %d records kept.\n", + fprintf (stderr, +#if GS_64BIT_OLD + "No record to remove. %d records kept.\n", +#else + "No record to remove. %ld records kept.\n", +#endif [records count]); } else diff --git a/UI/MailerUI/UIxMailFormatter.m b/UI/MailerUI/UIxMailFormatter.m index 38e4114ab..76bb7c86f 100644 --- a/UI/MailerUI/UIxMailFormatter.m +++ b/UI/MailerUI/UIxMailFormatter.m @@ -106,7 +106,11 @@ static BOOL debugOn = YES; char buf[32]; if (_p == NULL) _p = ""; +#if GS_64BIT_OLD sprintf(buf, "%s%02i:%02i", _p, [_d hourOfDay], [_d minuteOfHour]); +#else + sprintf(buf, "%s%02li:%02li", _p, [_d hourOfDay], [_d minuteOfHour]); +#endif return [StrClass stringWithCString:buf]; } @@ -138,10 +142,15 @@ static BOOL debugOn = YES; } } - /* 26.08.2004 13:24 */ +#if GS_64BIT_OLD sprintf(buf, "%02d.%02d.%04d %02d:%02d", [_date dayOfMonth], [_date monthOfYear], [_date yearOfCommonEra], [_date hourOfDay], [_date minuteOfHour]); +#else + sprintf(buf, "%02ld.%02ld.%04ld %02ld:%02ld", + [_date dayOfMonth], [_date monthOfYear], [_date yearOfCommonEra], + [_date hourOfDay], [_date minuteOfHour]); +#endif return [StrClass stringWithCString:buf]; }