|
refs #205 modified code to run with Visual Studio 2008
tested in: Linux x86_64 (gcc 4.1.2), Windows 7, (VS 2008)
changes are:
NXconvert-------------:
added a getopt.c to /windows as source file
#ifdef _MSC_VER
#include "getopt.h"
#else
#include <unistd.h>
#endif
NXsummary---------------:
added a stdint.h to /windows as source file
#ifdef HAVE_STDINT_H
#include <stdint.h>
#else
#ifdef _MSC_VER
typedef signed int64 int64_t;
typedef unsigned int64 uint64_t;
#endif _MSC_VER
NXtranslate----------------:
replaced
value
with
_value
(value is a VS keyword)
replaced
int dims[rank];
with
int dims[NX_MAXRANK];
MXvalidate---------------------:
replaced
static int mkstemp(char* template)
with
static int mkstemp(char* template_name)
Tclap: StdOutput.h -------------------------:
#if defined (_MSC_VER)
int stringLen = (std::min)( len - start, allowedLen );
#else
int stringLen = std::min( len - start, allowedLen );
#endif
|