Rename StrNCpy to avoid conflictions on win32 - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Rename StrNCpy to avoid conflictions on win32
Date
Msg-id 20090907113529.C853.52131E4D@oss.ntt.co.jp
Whole thread Raw
Responses Re: Rename StrNCpy to avoid conflictions on win32
List 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



pgsql-hackers by date:

Previous
From: Itagaki Takahiro
Date:
Subject: _WIN32_WINNT should be 0x0501 in win32.h
Next
From: Itagaki Takahiro
Date:
Subject: CREATE LIKE INCLUDING COMMENTS and STORAGES