Skip site navigation (1) Skip section navigation (2)

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 16:26:30
Message-ID: 4F3FD136.6080702@dunslane.net (view raw or flat)
Thread:
Lists: 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


In response to

Responses

pgsql-committers by date

Next:From: Michael MeskesDate: 2012-02-18 16:50:51
Subject: Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.
Previous:From: Michael MeskesDate: 2012-02-18 16:20:27
Subject: pgsql: gcc on Windows does not know about strtok_s.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group