Rename StrNCpy to avoid conflictions on win32

From: Itagaki Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Rename StrNCpy to avoid conflictions on win32
Date: 2009-09-07 02:40:13
Message-ID: 20090907113529.C853.52131E4D@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

We define StrNCpy() macro in c.h, but it conflicts another macro
defined in Microsoft SDKs:

C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\shlwapi.h(435)
: warning C4005: 'StrNCpy' : macro redefinition

Can we rename StrNCpy() macro to another name? (ex. pg_strncpy)
There might be some places to replace it to strlcpy() instead.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Itagaki Takahiro 2009-09-07 03:15:21 CREATE LIKE INCLUDING COMMENTS and STORAGES
Previous Message Itagaki Takahiro 2009-09-07 02:34:38 _WIN32_WINNT should be 0x0501 in win32.h