Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libconfig
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Libraries
libconfig
Commits
7646b20b
Commit
7646b20b
authored
Oct 17, 2017
by
Mark Lindner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Windows build issues.
Only tested with Visual C++ 2008.
parent
da68ce75
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
1 deletion
+54
-1
lib/libconfig++.vcproj
lib/libconfig++.vcproj
+22
-0
lib/libconfig.vcproj
lib/libconfig.vcproj
+22
-0
lib/util.c
lib/util.c
+4
-1
lib/util.h
lib/util.h
+1
-0
lib/wincompat.h
lib/wincompat.h
+5
-0
No files found.
lib/libconfig++.vcproj
View file @
7646b20b
...
...
@@ -57,6 +57,7 @@
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"Shlwapi.lib"
OutputFile=
"$(OutDir)\$(ProjectName)_d.dll"
LinkIncremental=
"2"
GenerateDebugInformation=
"true"
...
...
@@ -127,6 +128,7 @@
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"Shlwapi.lib"
OptimizeReferences=
"2"
EnableCOMDATFolding=
"2"
RandomizedBaseAddress=
"1"
...
...
@@ -188,6 +190,14 @@
RelativePath=
".\strbuf.c"
>
</File>
<File
RelativePath=
".\strvec.c"
>
</File>
<File
RelativePath=
".\util.c"
>
</File>
</Filter>
<Filter
Name=
"Header Files"
...
...
@@ -226,6 +236,18 @@
RelativePath=
".\win32\stdint.h"
>
</File>
<File
RelativePath=
".\strbuf.h"
>
</File>
<File
RelativePath=
".\strvec.h"
>
</File>
<File
RelativePath=
".\util.h"
>
</File>
<File
RelativePath=
".\wincompat.h"
>
...
...
lib/libconfig.vcproj
View file @
7646b20b
...
...
@@ -54,6 +54,7 @@
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"Shlwapi.lib"
OutputFile=
"$(OutDir)\$(ProjectName)_d.dll"
GenerateDebugInformation=
"true"
GenerateMapFile=
"true"
...
...
@@ -121,6 +122,7 @@
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"Shlwapi.lib"
RandomizedBaseAddress=
"1"
DataExecutionPrevention=
"0"
/>
...
...
@@ -175,6 +177,14 @@
RelativePath=
".\strbuf.c"
>
</File>
<File
RelativePath=
".\strvec.c"
>
</File>
<File
RelativePath=
".\util.c"
>
</File>
</Filter>
<Filter
Name=
"Header Files"
...
...
@@ -213,6 +223,18 @@
RelativePath=
".\win32\stdint.h"
>
</File>
<File
RelativePath=
".\strbuf.h"
>
</File>
<File
RelativePath=
".\strvec.h"
>
</File>
<File
RelativePath=
".\util.h"
>
</File>
<File
RelativePath=
".\wincompat.h"
>
...
...
lib/util.c
View file @
7646b20b
...
...
@@ -21,6 +21,7 @@
*/
#include "util.h"
#include "wincompat.h"
#include <errno.h>
#include <stdio.h>
...
...
@@ -31,9 +32,11 @@
void
__delete_vec
(
const
char
*
const
*
v
)
{
const
char
*
const
*
p
;
if
(
!
v
)
return
;
for
(
const
char
*
const
*
p
=
v
;
*
p
;
++
p
)
for
(
p
=
v
;
*
p
;
++
p
)
__delete
(
*
p
);
__delete
(
v
);
...
...
lib/util.h
View file @
7646b20b
...
...
@@ -20,6 +20,7 @@
----------------------------------------------------------------------------
*/
#include <string.h>
#include <sys/types.h>
#define __new(T) (T *)calloc(1, sizeof(T))
/* zeroed */
...
...
lib/wincompat.h
View file @
7646b20b
...
...
@@ -41,6 +41,10 @@
#define strtoll _strtoi64
#endif
#if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
#endif
#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) \
...
...
@@ -86,6 +90,7 @@
#define INT64_CONST(I) (I ## LL)
#define UINT64_CONST(I) (I ## ULL)
#include <Shlwapi.h>
#define IS_RELATIVE_PATH(P) \
((P)[0] != '/')
...
...
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