From 18c6ed71f0f7c00678a56998c9dddabd39ec2f1b Mon Sep 17 00:00:00 2001 From: clanmills Date: Wed, 16 Feb 2011 23:24:51 -0800 Subject: [PATCH] Add code to compile _strdup on non-Microsoft platforms (builds on Windows with DevStudio and Cygwin). --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 6cd15bf..df736d4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,6 +13,9 @@ #include #include #else +#ifndef _MSC_VER +#define _strdup strdup +#endif static char* readline(const char* p) { std::string retval;