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 4F400625.5000700@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>)
Responses 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 02:38 PM, Michael Meskes wrote:
> On Sat, Feb 18, 2012 at 12:40:43PM -0500, Andrew Dunstan wrote:
>>> Which one of these functions is available on MinGW?
> So what is the system on pitta? It says gcc, but doesn't seem to know strtok_r.
>
> I'm tempted to remove strtok and program the bits and pieces I need myself.
>


Sorry, it looks like I was mistaken, and neither of these is available
on mingw. Could you just use plain strtok(), possibly on a copy of the
string?

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: Tom Lane
Date:
Subject: pgsql: Update expected/collate.linux.utf8.out for recent plpgsql change