Re: Small changes to facilitate Win32 port - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Small changes to facilitate Win32 port
Date
Msg-id Pine.LNX.4.44.0205311631070.839-100000@localhost.localdomain
Whole thread Raw
In response to Small changes to facilitate Win32 port  (Katherine Ward <kward6@yahoo.com>)
List pgsql-hackers
Katherine Ward writes:

> A few of the identifier names used in postgres collide with WIN32 or MFC names.

Does Windows and/or MFC make any kind of statement about what kinds of
identifiers it reserves for its own use?

>     b.  GetUserName() => GetUserNameFromId()
>     c.  GetCurrentTime() => GetCurrentDateTime()

>     a.  MEM_FREE => MEM_FREE_IT in backend/utils/hash/dynahash.c
>     b.  IGNORE => IGNORE_TOK in include/utils/datetime.h & backend/utils/adt/datetime.c

It might be better to add PG prefixes consistently if there are clashes.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Ron Snyder
Date:
Subject: Re: Can't import large objects in most recent cvs (2002
Next
From: Peter Eisentraut
Date:
Subject: Re: Perl build fix attempted