Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Synchronet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main
Synchronet
Commits
26530929
Commit
26530929
authored
Nov 16, 2020
by
Rob Swindell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes necessary to build SyncTERM-Win32 with MSVC2019.
parent
08eb5b14
Pipeline
#665
failed with stage
in 11 minutes and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/xpdev/strwrap.c
src/xpdev/strwrap.c
+5
-1
src/xpdev/xpdev_mt.vcxproj
src/xpdev/xpdev_mt.vcxproj
+1
-0
No files found.
src/xpdev/strwrap.c
View file @
26530929
#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
#if
def _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
)
...
...
src/xpdev/xpdev_mt.vcxproj
View file @
26530929
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment