From f201592ddb0cb3f2b7922d44da43847fdf3289cd Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 16 Aug 2008 23:32:58 +0000 Subject: [PATCH] Fixed regression. I'm not making new builds though. --- compiler/libpc300/memfile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/libpc300/memfile.c b/compiler/libpc300/memfile.c index 73fd405f..f667a541 100644 --- a/compiler/libpc300/memfile.c +++ b/compiler/libpc300/memfile.c @@ -21,7 +21,11 @@ memfile_t *memfile_creat(const char *name, size_t init) pmf = (memfile_t *)malloc(sizeof(memfile_t)); memcpy(pmf, &mf, sizeof(memfile_t)); + #if defined _MSC_VER pmf->name = _strdup(name); + #else + pmf->name = strdup(name); + #endif return pmf; }