Fix the placement of deprecation macros

The deprecation macros, which expand to __declspec (deprecated) on Visual
Studio, is expected to be before the return type of the function which
is annotated by them, and having the deprecation macros there is also
accepted by GCC as well.

This will fix the builds of all applications/libraries using Cogl under
Visual Studio,

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Chun-wei Fan
2013-07-24 17:44:56 +08:00
committed by Robert Bragg
parent d87a0b08d6
commit aa878ddca6
15 changed files with 354 additions and 325 deletions

View File

@ -435,9 +435,9 @@ cogl_path_copy (CoglPath *path);
* Since: 1.0
* Deprecated: 1.16: Use cogl_framebuffer_push_path_clip() instead
*/
COGL_DEPRECATED_IN_1_16_FOR (cogl_framebuffer_push_path_clip)
void
cogl_clip_push_from_path_preserve (void)
COGL_DEPRECATED_IN_1_16_FOR (cogl_framebuffer_push_path_clip);
cogl_clip_push_from_path_preserve (void);
/**
* cogl_clip_push_from_path:
@ -450,9 +450,9 @@ cogl_clip_push_from_path_preserve (void)
* Since: 1.0
* Deprecated: 1.16: Use cogl_framebuffer_push_path_clip() instead
*/
COGL_DEPRECATED_IN_1_16_FOR (cogl_framebuffer_push_path_clip)
void
cogl_clip_push_from_path (void)
COGL_DEPRECATED_IN_1_16_FOR (cogl_framebuffer_push_path_clip);
cogl_clip_push_from_path (void);
COGL_END_DECLS