Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
4f9339df
Commit
4f9339df
authored
Oct 31, 2008
by
Pierre Habouzit
Committed by
Shawn O. Pearce
Oct 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide non-exported symbols when linking the library
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
parent
06160502
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
Makefile
+1
-0
src/git_common.h
+5
-1
No files found.
Makefile
View file @
4f9339df
...
...
@@ -6,6 +6,7 @@ CFLAGS = -g -O2
BASIC_CFLAGS
:=
-Isrc
BASIC_CFLAGS
+=
-DGIT__PRIVATE
BASIC_CFLAGS
+=
-fvisibility
=
hidden
OBJS
=
$
(
patsubst %.c,%.o,
$
(
wildcard src/
*
.c
))
HDRS
=
$
(
wildcard src/
*
.h
)
...
...
src/git_common.h
View file @
4f9339df
...
...
@@ -56,7 +56,11 @@
GIT_BEGIN_DECL
/** Declare a public function exported for application use. */
#define GIT_EXTERN(type) type
#ifdef __GNUC__
# define GIT_EXTERN(type) __attribute__((visibility("default"))) type
#else
# define GIT_EXTERN(type) type
#endif
/** Generic result code for any API call. */
typedef
int
git_result_t
;
...
...
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