Add code to compile _strdup on non-Microsoft platforms (builds on Windows with DevStudio and Cygwin).

This commit is contained in:
clanmills 2011-02-16 23:24:51 -08:00
parent 7ac22c7072
commit 18c6ed71f0

View File

@ -13,6 +13,9 @@
#include <readline/readline.h>
#include <readline/history.h>
#else
#ifndef _MSC_VER
#define _strdup strdup
#endif
static char* readline(const char* p)
{
std::string retval;