using POSIX compatible version of strdup() (i.e. _strdup()) on windows

This commit is contained in:
Axel Kohlmeyer
2019-02-07 14:11:02 +01:00
parent 019e534f80
commit ad8aeb8b00

View File

@ -4,6 +4,7 @@
#endif
#include <direct.h>
#include <cmath>
#include <cstring>
// LAMMPS uses usleep with 100 ms arguments, no microsecond precision needed
#if !defined(__MINGW32__)
#include "sleep.h"
@ -15,6 +16,7 @@
#define ATOBIGINT _atoi64
#define pclose _pclose
#define strdup _strdup
// the following functions ared defined to get rid of
// 'ambiguous call to overloaded function' error in VSS for mismathched type arguments