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 4F3FD136.6080702@dunslane.net
Whole thread Raw
In response to pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.  (Michael Meskes <meskes@postgresql.org>)
Responses Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.
Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.
List pgsql-committers


On 02/18/2012 09:56 AM, Michael Meskes wrote:
> Windows doesn't have strtok_r, so let's use strtok_s instead.


This broke mingw builds.

I think you need a test like:

     #if defined(WIN32) && ! defined(__GNUC__)

cheers

andrew


pgsql-committers by date:

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