X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id BA4A5D1BB93 for ; Fri, 9 Apr 2004 17:43:20 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 39470-06 for ; Fri, 9 Apr 2004 17:43:21 -0300 (ADT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 47693D1BB49 for ; Fri, 9 Apr 2004 17:43:18 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i39KhFZ05653; Fri, 9 Apr 2004 16:43:15 -0400 (EDT) From: Bruce Momjian Message-Id: <200404092043.i39KhFZ05653@candle.pha.pa.us> Subject: Re: [patch] CodeGuard fix In-Reply-To: <3FE02909.5070404@softek.fr> To: =?ISO-8859-1?Q?Cyrille_Ch=E9p=E9lov?= Date: Fri, 9 Apr 2004 16:43:15 -0400 (EDT) Cc: pgsql-odbc@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UNKNOWN-8BIT X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/76 X-Sequence-Number: 3971 Thanks. Patch applied. --------------------------------------------------------------------------- Cyrille Chépélov wrote: > Cyrille Ch?p?lov wrote: > > > the following patch (against 7.03.0200) contains two things: > > Note to self: ensure proper blood caffeine content before sending messages. > > -- Cyrille > > > > --- psqlodbc-07.03.0200.vanilla/convert.c 2003-10-20 04:37:42.000000000 +0200 > +++ psqlodbc-07.03.0200/convert.c 2003-12-17 10:24:12.000000000 +0100 > @@ -44,9 +44,15 @@ > #endif > > #ifdef __CYGWIN__ > -#define TIMEZONE_GLOBAL _timezone > +# define TIMEZONE_GLOBAL _timezone > #elif defined(WIN32) || defined(HAVE_INT_TIMEZONE) > -#define TIMEZONE_GLOBAL timezone > +# ifdef __BORLANDC__ > +# define timezone _timzone > +# define daylight _daylight > +# define TIMEZONE_GLOBAL _timezone > +# else > +# define TIMEZONE_GLOBAL timezone > +# endif > #endif > > /* > @@ -195,6 +201,7 @@ > *zone = 0; > st->fr = 0; > st->infinity = 0; > + rest[0] = 0; > if ((scnt = sscanf(str, "%4d-%2d-%2d %2d:%2d:%2d%s", &st->y, &st->m, &st->d, &st->hh, &st->mm, &st->ss, rest)) < 6) > return FALSE; > else if (scnt == 6) > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073