You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, strdup () is not available in the Windows build by default.
I added
#definestrdup _strdup
for this. Then I changed the position of the #ifndef WIN32 within string.c.
Beginning of platform.h:
/* all platform-specific includes and defines go in this file */#ifndefPLATFORM_H#definePLATFORM_H#include<stdio.h>#include<stdlib.h>#include<ctype.h>#include<string.h>#include<assert.h>#include<sys/types.h>#include<sys/stat.h>#include<stdarg.h>#include<setjmp.h>#include<math.h>#include<stdbool.h>/* host platform includes */#ifdefUNIX_HOST# include<stdint.h># include<unistd.h>#elif defined(WIN32) /*(predefined on MSVC)*/typedef__int64int64_t;
typedefunsigned __int64uint64_t;
#definestrdup _strdup
#else# error ***** A platform must be explicitly defined! *****
#endif
The version in the repository won't build on Windows. When I built it a few days ago I had to add
I simply added this to platform.h.
Also, strdup () is not available in the Windows build by default.
I added
for this. Then I changed the position of the #ifndef WIN32 within string.c.
Beginning of platform.h:
Around line 170 within cstdlib/string.h:
And a bit further down in string.c:
I thought it might be better if this went directly into the trunk.
The text was updated successfully, but these errors were encountered: