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
568ddf54
Commit
568ddf54
authored
Aug 08, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib/zvbi: fix compilation with clang
Simplified version of initial patch
parent
735d627e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
contrib/src/zvbi/rules.mak
contrib/src/zvbi/rules.mak
+3
-0
contrib/src/zvbi/zvbi-fix-clang-support.patch
contrib/src/zvbi/zvbi-fix-clang-support.patch
+30
-0
No files found.
contrib/src/zvbi/rules.mak
View file @
568ddf54
...
...
@@ -19,6 +19,9 @@ zvbi: zvbi-$(ZVBI_VERSION).tar.bz2 .sum-zvbi
$(APPLY)
$(SRC)
/zvbi/zvbi-ioctl.patch
ifdef
HAVE_WIN32
$(APPLY)
$(SRC)
/zvbi/zvbi-win32.patch
endif
ifdef
HAVE_DARWIN_OS
$(APPLY)
$(SRC)
/zvbi/zvbi-fix-clang-support.patch
endif
$(MOVE)
...
...
contrib/src/zvbi/zvbi-fix-clang-support.patch
0 → 100644
View file @
568ddf54
diff -ru zvbi/src/misc.h zvbi-fixed/src/misc.h
--- zvbi/src/misc.h 2013-07-02 04:32:31.000000000 +0200
+++ zvbi-fixed/src/misc.h 2013-08-08 21:37:22.000000000 +0200
@@ -52,17 +52,6 @@
# define unlikely(expr) __builtin_expect(expr, 0)
#endif
-#undef __i386__
-#undef __i686__
-/* FIXME #cpu is deprecated
-#if #cpu (i386)
-# define __i386__ 1
-#endif
-#if #cpu (i686)
-# define __i686__ 1
-#endif
-*/
-
/* &x == PARENT (&x.tm_min, struct tm, tm_min),
safer than &x == (struct tm *) &x.tm_min. A NULL _ptr is safe and
will return NULL, not -offsetof(_member). */
@@ -156,8 +145,6 @@
#define likely(expr) (expr)
#define unlikely(expr) (expr)
-#undef __i386__
-#undef __i686__
static char *
PARENT_HELPER (char *p, unsigned int offset)
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