[Cogl] [1.16] Patch: Include missed header in cogl/cogl-bitmap-conversion.c

Fan Chun-wei fanc999 at yahoo.com.tw
Mon Aug 26 04:01:34 PDT 2013


Hi,

The header cogl-texture-private.h needs to be included for 
_cogl_texture_needs_premult_conversion so that we don't run into 
warnings/errors C4013 (aka implicit declaration of ...) for that symbol.

With blessings, thank you!
-------------- next part --------------
From 4b1ca802970f30785407070a8cba83c0b99b46c9 Mon Sep 17 00:00:00 2001
From: Chun-wei Fan <fanchunwei at src.gnome.org>
Date: Mon, 26 Aug 2013 18:50:46 +0800
Subject: [PATCH 1/3] cogl/cogl-bitmap-conversion.c: Include missed header

The cogl-texture-private.h needs to be included as
_cogl_texture_needs_premult_conversion, so that we can avoid implicit
declaration warnings of that symbol (aka C4013 on MSVC).
---
 cogl/cogl-bitmap-conversion.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cogl/cogl-bitmap-conversion.c b/cogl/cogl-bitmap-conversion.c
index add221e..ff7c55f 100644
--- a/cogl/cogl-bitmap-conversion.c
+++ b/cogl/cogl-bitmap-conversion.c
@@ -28,6 +28,7 @@
 #include "cogl-private.h"
 #include "cogl-bitmap-private.h"
 #include "cogl-context-private.h"
+#include "cogl-texture-private.h"
 
 #include <string.h>
 
-- 
1.8.3.msysgit.0


More information about the Cogl mailing list