On Nov 22, 2007 9:03 PM, Joe Sadusk via RT
<[EMAIL PROTECTED]> wrote:
> Reposting this because this is my first patch, and it didn't occur to me
> that if I don't CC perl6-internals, no one would notice it.
>
> It turns out that strerror_r is POSIX only, and windows has the slightly
> different strerror_s (exactly the same except the arguments are in a
> different order). I defined a macro that abstracts this, but I don't
> know if there's a standard header file cross platform macros like this
> are put in, so I put it inline in the pmc. If anyone has a suggestion of
> where this belongs, I'll gladly move it.

I'm no expert on this, but in config/gen/platform, there are
subdirectories that contain files that do platform dependent stuff.
(I only know this because I once added
config/gen/platform/win32/string.h, which defines a macro for strdup
for MSVC users.)

I suspect that your macro should go in a similar file, but this should
be confirmed by someone with more knowledge on this.

kjs

Reply via email to