Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead. - Mailing list pgsql-committers

From Andrew Dunstan
Subject Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.
Date
Msg-id 4F3FDEEB.3000505@dunslane.net
Whole thread Raw
In response to Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.  (Michael Meskes <meskes@postgresql.org>)
List pgsql-committers

On 02/18/2012 11:50 AM, Michael Meskes wrote:
> On Sat, Feb 18, 2012 at 11:26:30AM -0500, Andrew Dunstan wrote:
>> I think you need a test like:
>>
>>      #if defined(WIN32)&&  ! defined(__GNUC__)
> I found WIN32_ONLY_COMPILER used elsewhere and tried that. So far I've seen no
> new red on the buildfarm.
>

Yeah, that should work too.

cheers

andrew

pgsql-committers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.
Next
From: Michael Meskes
Date:
Subject: Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.