mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-19 01:50:49 +00:00
support old compilers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@38468 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d70286f339
commit
28f18d26a4
1 changed files with 3 additions and 1 deletions
|
@ -248,6 +248,8 @@ newDateFromBuffer(const char *b, int l)
|
||||||
{
|
{
|
||||||
if (future == nil)
|
if (future == nil)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
initStringSel = @selector(initWithBytes:length:encoding:);
|
initStringSel = @selector(initWithBytes:length:encoding:);
|
||||||
#if defined(GNUSTEP)
|
#if defined(GNUSTEP)
|
||||||
placeholder = [NSString alloc];
|
placeholder = [NSString alloc];
|
||||||
|
@ -266,7 +268,7 @@ newDateFromBuffer(const char *b, int l)
|
||||||
[future retain];
|
[future retain];
|
||||||
null = [NSNull null];
|
null = [NSNull null];
|
||||||
[null retain];
|
[null retain];
|
||||||
for (int i = -23; i <= 23; i++)
|
for (i = -23; i <= 23; i++)
|
||||||
{
|
{
|
||||||
zones[i + 23]
|
zones[i + 23]
|
||||||
= [[NSTimeZone timeZoneForSecondsFromGMT: i * 60 * 60] retain];
|
= [[NSTimeZone timeZoneForSecondsFromGMT: i * 60 * 60] retain];
|
||||||
|
|
Loading…
Reference in a new issue