[Cogl] [1.16]Patch: cogl/cogl-offscreen.h: Fix Placement of deprecation macros

Fan Chun-wei fanc999 at yahoo.com.tw
Mon Aug 26 03:59:29 PDT 2013


Hi,

The deprecation macros need to be before the function prototypes, not 
after, on Visual Studio.  Move this accordingly, as this is also 
accepted by GCC.

With blessings, thank you!
-------------- next part --------------
From 9b33274a711909b80fb68326fc23e6bbb7b3c03e Mon Sep 17 00:00:00 2001
From: Chun-wei Fan <fanchunwei at src.gnome.org>
Date: Mon, 26 Aug 2013 18:51:55 +0800
Subject: [PATCH 2/3] cogl/cogl-offscreen.h: Fix deprecation macro placement

The deprecation macros need to be before the function prototype on
Visual Studio, and is also accepted by GCC.
---
 cogl/cogl-offscreen.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cogl/cogl-offscreen.h b/cogl/cogl-offscreen.h
index bfbe3c8..fcb9924 100644
--- a/cogl/cogl-offscreen.h
+++ b/cogl/cogl-offscreen.h
@@ -102,9 +102,9 @@ cogl_offscreen_new_with_texture (CoglTexture *texture);
  *   buffer.
  * Deprecated: 1.16: Use cogl_offscreen_new_with_texture instead.
  */
+COGL_DEPRECATED_IN_1_16_FOR (cogl_offscreen_new_with_texture)
 CoglOffscreen *
-cogl_offscreen_new_to_texture (CoglTexture *texture)
-    COGL_DEPRECATED_IN_1_16_FOR (cogl_offscreen_new_with_texture);
+cogl_offscreen_new_to_texture (CoglTexture *texture);
 
 /**
  * cogl_is_offscreen:
-- 
1.8.3.msysgit.0


More information about the Cogl mailing list