--- trunk/src/utils/ElementsTable.cpp 2009/11/25 20:02:06 1390 +++ branches/development/src/utils/ElementsTable.cpp 2012/10/22 20:42:10 1808 @@ -25,24 +25,26 @@ GNU General Public License for more details. * @file ElementsTable.cpp * @author gezelter * @date 12/21/2007 - * @time 11:30am * @version 1.0 */ -#include #include "config.h" + +#include #include #include #include #include #include "utils/ElementsTable.hpp" #include "utils/simError.h" -#include "io/basic_ifstrstream.hpp" - -#if !HAVE_STRNCASECMP -extern "C" int strncasecmp(const char *s1, const char *s2, size_t n); +#include "io/ifstrstream.hpp" + +#ifdef _MSC_VER +#define strncasecmp _strnicmp +#define strcasecmp _stricmp #endif + #ifdef WIN32 #define FILE_SEP_CHAR "\\" #else @@ -59,7 +61,7 @@ namespace OpenMD { ElementsTable::ElementsTable() { init_ = false; - STR_DEFINE(dir_, FRC_PATH ); + dir_ = std::string("TO_STRING(FRC_PATH)"); envvar_ = "FORCE_PARAM_PATH"; filename_ = "element.txt"; }