[vlc-devel] commit: screen: Silence warning that are not our business in ColorSync headers. (Pierre d' Herbemont )

git version control git at videolan.org
Thu Aug 20 16:43:33 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Aug 20 16:15:55 2009 +0200| [f42f905acda42d66140631f744e69cf2a8a80961] | committer: Pierre d'Herbemont 

screen: Silence warning that are not our business in ColorSync headers.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f42f905acda42d66140631f744e69cf2a8a80961
---

 modules/access/screen/mac.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/access/screen/mac.c b/modules/access/screen/mac.c
index f469bac..0427731 100644
--- a/modules/access/screen/mac.c
+++ b/modules/access/screen/mac.c
@@ -32,7 +32,11 @@
 
 #import <vlc_common.h>
 
+// Fix ourselves ColorSync headers that gets included in ApplicationServices.
+#define DisposeCMProfileIterateUPP(a) DisposeCMProfileIterateUPP(CMProfileIterateUPP userUPP __attribute__((unused)))
+#define DisposeCMMIterateUPP(a) DisposeCMMIterateUPP(CMProfileIterateUPP userUPP __attribute__((unused)))
 #import <ApplicationServices/ApplicationServices.h>
+
 #import <OpenGL/OpenGL.h>
 #import <OpenGL/gl.h>
 #import <stdlib.h>




More information about the vlc-devel mailing list