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
04b59c91
Commit
04b59c91
authored
Jan 27, 2003
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./include/vlc_common.h: if we don't have strndup but gnome.h defines it
anyway, do not provide our custom version.
parent
887faff1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
configure.ac.in
configure.ac.in
+7
-0
include/vlc_common.h
include/vlc_common.h
+8
-3
No files found.
configure.ac.in
View file @
04b59c91
...
...
@@ -2313,6 +2313,13 @@ AC_ARG_ENABLE(gnome,
NEED_GTK_MAIN=yes
NEED_GNOME_MAIN=yes
ALIASES="${ALIASES} gnome-vlc"
dnl We need this because of some moronic gnomesupport.h flavours
AC_MSG_CHECKING(for strndup in gnome.h)
AC_EGREP_HEADER(strndup,gnome.h,[
AC_MSG_RESULT(yes)
AC_DEFINE(STRNDUP_IN_GNOME_H, 1,
Define if <gnome.h> defines strndup.)],[
AC_MSG_RESULT(no)])
],[
AC_MSG_ERROR([Can't find gnome headers. Please install the gnome
developement tools or remove the --enable-gnome option])
...
...
include/vlc_common.h
View file @
04b59c91
...
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vlc_common.h,v 1.4
8 2003/01/16 09:02:4
6 sam Exp $
* $Id: vlc_common.h,v 1.4
9 2003/01/27 22:42:3
6 sam Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
...
@@ -493,8 +493,13 @@ static inline uint64_t U64_AT( void * _p )
#endif
#ifndef HAVE_STRNDUP
# define strndup vlc_strndup
VLC_EXPORT
(
char
*
,
vlc_strndup
,
(
const
char
*
s
,
size_t
n
)
);
# if defined(STRNDUP_IN_GNOME_H) && \
(defined(MODULE_NAME_IS_gnome)||defined(MODULE_NAME_IS_gnome_main))
/* Do nothing: gnome.h defines strndup for us */
# else
# define strndup vlc_strndup
VLC_EXPORT
(
char
*
,
vlc_strndup
,
(
const
char
*
s
,
size_t
n
)
);
# endif
#elif !defined(__PLUGIN__)
# define vlc_strndup NULL
#endif
...
...
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