Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
58d2dcae
Unverified
Commit
58d2dcae
authored
Aug 31, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix weak linking in Linux (when resources are not available)
parent
a9468d1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/CifUtils.cpp
+6
-1
No files found.
src/CifUtils.cpp
View file @
58d2dcae
...
...
@@ -834,6 +834,11 @@ extern "C" const char gResourceName[];
extern
const
__attribute__
((
weak
))
mrsrc
::
rsrc_imp
gResourceIndex
[];
extern
const
__attribute__
((
weak
))
char
gResourceData
[];
extern
const
__attribute__
((
weak
))
char
gResourceName
[];
const
mrsrc
::
rsrc_imp
gResourceIndex
[
1
]
=
{};
const
char
gResourceData
[
1
]
=
{};
const
char
gResourceName
[
1
]
=
{};
#endif
namespace
mrsrc
...
...
@@ -862,7 +867,7 @@ class rsrc_data
private
:
rsrc_data
()
{
if
(
gResourceIndex
and
gResourceIndex
and
gResourceName
)
if
(
gResourceIndex
and
(
gResourceIndex
[
0
].
m_child
>
0
or
gResourceIndex
[
0
].
m_size
>
0
)
and
gResourceIndex
and
gResourceName
)
{
m_index
=
gResourceIndex
;
m_data
=
gResourceData
;
...
...
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