Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 26530929 authored by Rob Swindell's avatar Rob Swindell 💬

Changes necessary to build SyncTERM-Win32 with MSVC2019.

parent 08eb5b14
Pipeline #665 failed with stage
in 11 minutes and 16 seconds
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#if !defined _MSC_VER && !defined __BORLANDC__
char* itoa(int val, char* str, int radix)
......@@ -40,7 +42,7 @@ char* ltoa(long val, char* str, int radix)
}
#endif
#ifdef _WIN32
#if defined(_WIN32) && !defined(_MSC_VER)
/* From FreeBSD */
size_t
strnlen(const char *s, size_t maxlen)
......@@ -53,7 +55,9 @@ strnlen(const char *s, size_t maxlen)
}
return (len);
}
#endif
#ifdef _WIN32
/* From FreeBSD */
char *
strndup(const char *str, size_t maxlen)
......
......@@ -182,6 +182,7 @@
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<ClCompile Include="strwrap.c" />
<ClCompile Include="str_list.c">
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment