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
370f789f
Commit
370f789f
authored
Jan 21, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contribs: fix macosx build of libcaca
parent
c2c0b1db
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
0 deletions
+71
-0
extras/contrib/src/Makefile
extras/contrib/src/Makefile
+5
-0
extras/contrib/src/Patches/caca_driver_cocoa.diff
extras/contrib/src/Patches/caca_driver_cocoa.diff
+53
-0
extras/contrib/src/Patches/caca_macosx.diff
extras/contrib/src/Patches/caca_macosx.diff
+13
-0
No files found.
extras/contrib/src/Makefile
View file @
370f789f
...
...
@@ -1295,6 +1295,11 @@ libcaca-$(LIBCACA_VERSION).tar.gz:
libcaca
:
libcaca-$(LIBCACA_VERSION).tar.gz
$(EXTRACT_GZ)
ifdef
HAVE_DARWIN_OS
#remove me at next libcaca upgrade
patch
-p0
< Patches/caca_driver_cocoa.diff
patch
-p0
< Patches/caca_macosx.diff
endif
.caca
:
libcaca
ifdef
HAVE_WIN32
...
...
extras/contrib/src/Patches/caca_driver_cocoa.diff
0 → 100644
View file @
370f789f
--- libcaca-0.99.beta13b/caca/driver_cocoa.m 2007-11-25 15:00:34.000000000 +0100
+++ libcaca/caca/driver_cocoa.m 2008-01-21 17:39:14.000000000 +0100
@@ -3,7 +3,7 @@
* Copyright (c) 2006 Colin Delacroix <colin@zoy.org>
* All Rights Reserved
*
- * $Id$
+ * $Id: driver_cocoa.m 1445 2007-12-16 01:50:41Z sam $
*
* This library is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
@@ -722,7 +722,7 @@
return caca_keycode;
}
-static BOOL handle_key_event(struct caca_event *ev, NSEvent* event)
+static BOOL handle_key_event(caca_privevent_t *ev, NSEvent* event)
{
if(!ev || !event)
return NO;
@@ -774,7 +774,7 @@
}
// TODO: handle CACA_EVENT_RESIZE
-static BOOL handle_mouse_event(caca_display_t *dp, struct caca_event *ev,
+static BOOL handle_mouse_event(caca_display_t *dp, caca_privevent_t *ev,
NSEvent* event)
{
if(!ev || !event)
@@ -884,7 +884,7 @@
[pool release];
}
-static int cocoa_get_event(caca_display_t *dp, struct caca_event *ev)
+static int cocoa_get_event(caca_display_t *dp, caca_privevent_t *ev)
{
if(s_quit)
{
@@ -970,12 +970,12 @@
return 0;
}
-static unsigned int cocoa_get_display_width(caca_display_t *dp)
+static unsigned int cocoa_get_display_width(caca_display_t const *dp)
{
return [dp->drv.p->window frame].size.width;
}
-static unsigned int cocoa_get_display_height(caca_display_t *dp)
+static unsigned int cocoa_get_display_height(caca_display_t const *dp)
{
return [dp->drv.p->window frame].size.height;
}
extras/contrib/src/Patches/caca_macosx.diff
0 → 100644
View file @
370f789f
Index: src/mygetopt.c
===================================================================
--- libcaca.orig/src/mygetopt.c (révision 1516)
+++ libcaca/src/mygetopt.c (copie de travail)
@@ -25,7 +25,7 @@
#endif
/* DOS / Kernel driver */
-#ifndef __intptr_t_defined
+#if !defined(__intptr_t_defined) && !defined(_UINTPTR_T)
typedef unsigned int uintptr_t;
#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