Gate icon indicating copy to clipboard operation
Gate copied to clipboard

snprintf and ssize_t not defined

Open mojca opened this issue 10 years ago • 0 comments

Under Visual Studio 2012 I had to remove #include <unistd.h> and replace it with

#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#define snprintf _snprintf
#include <io.h>
#endif

to get the code from source/geometry/src/GateDMapVol.cc and GateDMaplongvol.cc to compile. The code needs to be reviewed.

mojca avatar Mar 27 '15 15:03 mojca