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

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Michael Meskes <meskes(at)postgresql(dot)org>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.
Date: 2012-02-18 20:12:21
Message-ID: 4F400625.5000700@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-02-18 23:08:39 pgsql: Update expected/collate.linux.utf8.out for recent plpgsql change
Previous Message Michael Meskes 2012-02-18 19:38:35 Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.