Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c80de559
Commit
c80de559
authored
May 24, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix win32 linking
parent
1231f33d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
include/vlc_common.h
include/vlc_common.h
+1
-1
src/extras/libc.c
src/extras/libc.c
+6
-4
No files found.
include/vlc_common.h
View file @
c80de559
...
...
@@ -722,7 +722,7 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw )
VLC_EXPORT
(
int
,
vlc_vasprintf
,
(
char
**
,
const
char
*
,
va_list
)
);
VLC_EXPORT
(
int
,
vlc_asprintf
,
(
char
**
,
const
char
*
,
...
)
ATTRIBUTE_FORMAT
(
2
,
3
)
);
VLC_EXPORT
(
size_t
,
vlc_strlcpy
,
(
char
*
,
const
char
*
,
size_t
)
);
VLC_EXPORT
(
int64_t
,
vlc_strtoll
,
(
const
char
*
nptr
,
char
**
endptr
,
int
base
)
);
VLC_EXPORT
(
long
long
,
vlc_strtoll
,
(
const
char
*
nptr
,
char
**
endptr
,
int
base
)
);
VLC_EXPORT
(
char
*
,
vlc_strcasestr
,
(
const
char
*
s1
,
const
char
*
s2
)
);
...
...
src/extras/libc.c
View file @
c80de559
...
...
@@ -167,10 +167,12 @@ int vlc_asprintf( char **strp, const char *fmt, ... )
/*****************************************************************************
* strtoll: convert a string to a 64 bits int.
*****************************************************************************/
#if !defined( HAVE_STRTOLL )
int64_t
vlc_strtoll
(
const
char
*
nptr
,
char
**
endptr
,
int
base
)
long
long
vlc_strtoll
(
const
char
*
nptr
,
char
**
endptr
,
int
base
)
{
int64_t
i_value
=
0
;
#if defined( HAVE_STRTOLL )
return
strtoll
(
nptr
,
endptr
,
base
);
#else
long
long
i_value
=
0
;
int
sign
=
1
,
newbase
=
base
?
base
:
10
;
while
(
isspace
(
*
nptr
)
)
nptr
++
;
...
...
@@ -233,8 +235,8 @@ int64_t vlc_strtoll( const char *nptr, char **endptr, int base )
}
return
i_value
*
sign
;
}
#endif
}
/**
* Copy a string to a sized buffer. The result is always nul-terminated
...
...
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