From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Hiroshi Inoue <Inoue@tpf.co.jp>
Cc: Dave Page <dpage@vale-housing.co.uk>
Cc: 'pgsql-odbc@postgresql.org' <pgsql-odbc@postgresql.org>
Subject: Re: ODBC changes
Date: Tue, 27 Nov 2001 19:15:49 -0500 (EST)
Message-ID: <200111280015.fAS0Fnh14679@candle.pha.pa.us> (raw)
In-Reply-To: <3C0425F0.F25F1275@tpf.co.jp>
> > I believe you are commenting about this in md5.h:
> >
> > #ifdef WIN32
> > #define MD5_ODBC
> > #define FRONTEND
> > #endif
> >
> > Yes, not sure this makes sense anymore because Hiroshi added win_md5.c
> > which defines those and then includes md5.c. Hiroshi, should this part
> > be removed?
>
> #define MD5_ODBC in md5.h is useless from the first
> because md5.h isn't #included unless MD5_ODBC is #defined.
> I don't know about FRONTEND. Usually I don't use win32.mak
> to compile the driver. It seems Dave doesn't use it either.
> The extra two -D(/D) compile options seem too heavy only
> for md5.c, so I added win_md5.c to avoid my mistake. Note
> that md5.c is used directly under *nixes.
OK, I am applying the following patch. Instead of using -D in each
compile script, Hiroshi has used win_md5.c to define what he needs and
then include md5.c.
With this method, the test in md5.h is no longer needed.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Attachments:/bjm/diff (text/plain, 504B) download
Index: src/interfaces/odbc/md5.h
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/odbc/md5.h,v
retrieving revision 1.6
diff -c -r1.6 md5.h
*** src/interfaces/odbc/md5.h 2001/11/19 06:26:00 1.6
--- src/interfaces/odbc/md5.h 2001/11/28 00:13:40
***************
*** 14,23 ****
#include <stdlib.h>
#include <string.h>
- #ifdef WIN32
- #define MD5_ODBC
- #define FRONTEND
- #endif
#define MD5_PASSWD_LEN 35
/* From c.h */
--- 14,19 ----
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: pgman@candle.pha.pa.us, Inoue@tpf.co.jp, dpage@vale-housing.co.uk
Subject: Re: ODBC changes
In-Reply-To: <200111280015.fAS0Fnh14679@candle.pha.pa.us>
References: <3C0425F0.F25F1275@tpf.co.jp> <200111280015.fAS0Fnh14679@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox