Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-2-2
Commits
d95990dc
Commit
d95990dc
authored
May 07, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark exported symbols with default visibility on GCC 4
parent
085558eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
include/vlc/libvlc.h
include/vlc/libvlc.h
+2
-0
include/vlc_common.h
include/vlc_common.h
+3
-3
include/vlc_plugin.h
include/vlc_plugin.h
+10
-3
No files found.
include/vlc/libvlc.h
View file @
d95990dc
...
...
@@ -40,6 +40,8 @@
#if defined (WIN32) && defined (DLL_EXPORT)
# define VLC_PUBLIC_API __declspec(dllexport)
#elif defined (__GNUC__) && (__GNUC__ >= 4)
# define VLC_PUBLIC_API __attribute__((visibility("default")))
#else
# define VLC_PUBLIC_API
#endif
...
...
include/vlc_common.h
View file @
d95990dc
...
...
@@ -115,10 +115,10 @@
# define LIBVLC_EXTERN
#endif
#if defined (__GNUC__) && (__GNUC__ >= 4)
# define LIBVLC_EXPORT __attribute__((visibility("default")))
#elif defined (WIN32) && defined (DLL_EXPORT)
#if defined (WIN32) && defined (DLL_EXPORT)
# define LIBVLC_EXPORT __declspec(dllexport)
#elif defined (__GNUC__) && (__GNUC__ >= 4)
# define LIBVLC_EXPORT __attribute__((visibility("default")))
#else
# define LIBVLC_EXPORT
#endif
...
...
include/vlc_plugin.h
View file @
d95990dc
...
...
@@ -140,12 +140,19 @@ enum vlc_module_properties
# define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME )
#endif
#if defined( __PLUGIN__ ) && ( defined( WIN32 ) || defined( UNDER_CE ) )
#define CDECL_SYMBOL
#if defined (__PLUGIN__)
# if defined (WIN32)
# define DLL_SYMBOL __declspec(dllexport)
# undef CDECL_SYMBOL
# define CDECL_SYMBOL __cdecl
# elif defined (__GNUC__) && (__GNUC__ >= 4)
# define DLL_SYMBOL __attribute__((visibility("default")))
# else
# define DLL_SYMBOL
# endif
#else
# define DLL_SYMBOL
# define CDECL_SYMBOL
# define DLL_SYMBOL
#endif
#if defined( __cplusplus )
...
...
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