Browse Source

MSVS project update for config_parser commit

djm34
troky 11 years ago
parent
commit
85a6adf8fb
  1. 23
      winbuild/dist/include/winbuild.h
  2. 3
      winbuild/sgminer.vcxproj
  3. 9
      winbuild/sgminer.vcxproj.filters

23
winbuild/dist/include/winbuild.h vendored

@ -131,6 +131,29 @@ inline void* memmem (void* buf, size_t buflen, void* pat, size_t patlen)
return 0; return 0;
} }
#ifndef HAVE_STRSEP
inline char *strsep(char **stringp, const char *delim)
{
char *res;
if (!stringp || !*stringp || !**stringp) {
return NULL;
}
res = *stringp;
while(**stringp && !strchr(delim, **stringp)) {
++(*stringp);
}
if (**stringp) {
**stringp = '\0';
++(*stringp);
}
return res;
}
#endif
#define va_copy(a, b) memcpy(&(a), &(b), sizeof(va_list)) #define va_copy(a, b) memcpy(&(a), &(b), sizeof(va_list))
#define usleep(x) Sleep((x)/1000) #define usleep(x) Sleep((x)/1000)

3
winbuild/sgminer.vcxproj

@ -273,6 +273,7 @@
<ClCompile Include="..\compat\jansson-2.5\src\utf.c" /> <ClCompile Include="..\compat\jansson-2.5\src\utf.c" />
<ClCompile Include="..\compat\jansson-2.5\src\value.c" /> <ClCompile Include="..\compat\jansson-2.5\src\value.c" />
<ClCompile Include="..\algorithm\darkcoin.c" /> <ClCompile Include="..\algorithm\darkcoin.c" />
<ClCompile Include="..\config_parser.c" />
<ClCompile Include="..\driver-opencl.c" /> <ClCompile Include="..\driver-opencl.c" />
<ClCompile Include="..\findnonce.c" /> <ClCompile Include="..\findnonce.c" />
<ClCompile Include="..\algorithm\fuguecoin.c" /> <ClCompile Include="..\algorithm\fuguecoin.c" />
@ -318,6 +319,7 @@
<ClInclude Include="..\adl.h" /> <ClInclude Include="..\adl.h" />
<ClInclude Include="..\algorithm.h" /> <ClInclude Include="..\algorithm.h" />
<ClInclude Include="..\algorithm\animecoin.h" /> <ClInclude Include="..\algorithm\animecoin.h" />
<ClInclude Include="..\api.h" />
<ClInclude Include="..\arg-nonnull.h" /> <ClInclude Include="..\arg-nonnull.h" />
<ClInclude Include="..\bench_block.h" /> <ClInclude Include="..\bench_block.h" />
<ClInclude Include="..\c++defs.h" /> <ClInclude Include="..\c++defs.h" />
@ -328,6 +330,7 @@
<ClInclude Include="..\compat\jansson-2.5\src\strbuffer.h" /> <ClInclude Include="..\compat\jansson-2.5\src\strbuffer.h" />
<ClInclude Include="..\compat\jansson-2.5\src\utf.h" /> <ClInclude Include="..\compat\jansson-2.5\src\utf.h" />
<ClInclude Include="..\algorithm\darkcoin.h" /> <ClInclude Include="..\algorithm\darkcoin.h" />
<ClInclude Include="..\config_parser.h" />
<ClInclude Include="..\driver-opencl.h" /> <ClInclude Include="..\driver-opencl.h" />
<ClInclude Include="..\elist.h" /> <ClInclude Include="..\elist.h" />
<ClInclude Include="..\findnonce.h" /> <ClInclude Include="..\findnonce.h" />

9
winbuild/sgminer.vcxproj.filters

@ -212,6 +212,9 @@
<ClCompile Include="..\algorithm\twecoin.c"> <ClCompile Include="..\algorithm\twecoin.c">
<Filter>Source Files\algorithm</Filter> <Filter>Source Files\algorithm</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\config_parser.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="..\adl.h"> <ClInclude Include="..\adl.h">
@ -379,6 +382,12 @@
<ClInclude Include="..\algorithm\twecoin.h"> <ClInclude Include="..\algorithm\twecoin.h">
<Filter>Header Files\algorithm</Filter> <Filter>Header Files\algorithm</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\api.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\config_parser.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="README.txt" /> <None Include="README.txt" />

Loading…
Cancel
Save