Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
25c56aea
Commit
25c56aea
authored
Feb 08, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/darwin_specific.c: Fix compilation where MAXPATHLEN isn't defined. Fix a bunch of warnings.
parent
52a3a73f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/misc/darwin_specific.c
src/misc/darwin_specific.c
+7
-3
No files found.
src/misc/darwin_specific.c
View file @
25c56aea
...
@@ -40,6 +40,10 @@
...
@@ -40,6 +40,10 @@
# include <mach-o/dyld.h>
# include <mach-o/dyld.h>
#endif
#endif
#ifndef MAXPATHLEN
# define MAXPATHLEN 1024
#endif
/* CFLocaleCopyAvailableLocaleIdentifiers is present only on post-10.4 */
/* CFLocaleCopyAvailableLocaleIdentifiers is present only on post-10.4 */
extern
CFArrayRef
CFLocaleCopyAvailableLocaleIdentifiers
(
void
)
__attribute__
((
weak_import
));
extern
CFArrayRef
CFLocaleCopyAvailableLocaleIdentifiers
(
void
)
__attribute__
((
weak_import
));
...
@@ -75,18 +79,18 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
...
@@ -75,18 +79,18 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
char
i_dummy
;
char
i_dummy
;
char
*
p_char
=
NULL
;
char
*
p_char
=
NULL
;
char
*
p_oldchar
=
&
i_dummy
;
char
*
p_oldchar
=
&
i_dummy
;
int
i
;
unsigned
int
i
;
/* Get the full program path and name */
/* Get the full program path and name */
/* First try to see if we are linked to the framework */
/* First try to see if we are linked to the framework */
for
(
i
=
0
;
i
<
_dyld_image_count
();
i
++
)
for
(
i
=
0
;
i
<
_dyld_image_count
();
i
++
)
{
{
char
*
psz_img_name
=
_dyld_get_image_name
(
i
);
c
onst
c
har
*
psz_img_name
=
_dyld_get_image_name
(
i
);
/* Check for "VLCKit.framework/Versions/Current/VLCKit",
/* Check for "VLCKit.framework/Versions/Current/VLCKit",
* as well as "VLCKit.framework/Versions/A/VLCKit" and
* as well as "VLCKit.framework/Versions/A/VLCKit" and
* "VLC.framework/Versions/B/VLCKit" */
* "VLC.framework/Versions/B/VLCKit" */
if
(
p_char
=
strstr
(
psz_img_name
,
"VLCKit.framework/Versions/"
)
)
if
(
(
p_char
=
strstr
(
psz_img_name
,
"VLCKit.framework/Versions/"
))
)
{
{
/* Look for the next forward slash */
/* Look for the next forward slash */
p_char
+=
26
;
/* p_char += strlen(" VLCKit.framework/Versions/" ) */
p_char
+=
26
;
/* p_char += strlen(" VLCKit.framework/Versions/" ) */
...
...
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