Added strtok_r for WIN32

This commit is contained in:
MarkRivers
2007-09-13 16:51:30 +00:00
parent 1c68ddaaa0
commit 11908beb94
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -34,6 +34,9 @@ Newport_SRCS += asynOctetSocket.cpp
Newport_SRCS += XPS_C8_drivers.cpp drvXPSAsyn.c drvXPSAsynAux.c XPSAsynInterpose.c xps_ftp.c
Newport_SRCS += XPS_trajectoryScan.st
# strtok_r needed on WIN32
Newport_SRCS_WIN32 += strtok_r.cpp
# XPS Gathering test function
Newport_SRCS += XPSGathering.c
Newport_SRCS += XPSGatheringRegister.c
+2 -1
View File
@@ -15,6 +15,7 @@
#else
#define DLL
#endif
#include "strtok_r.h"
#else
#define DLL
#endif
@@ -3846,7 +3847,7 @@ int __stdcall PositionerCorrectorPIDFFAccelerationGet (int SocketIndex, char * P
{
int ret = -1;
char ExecuteMethod[SIZE_EXECUTE_METHOD];
int temp;
int temp;
char *ReturnedValue = (char *) malloc (sizeof(char) * SIZE_SMALL);
/* Convert to string */