diff options
author | Andreas Oberritter <obi@saftware.de> | 2013-05-28 19:47:12 +0200 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2013-05-29 11:58:48 +0100 |
commit | bb1f787e6ae70eb5a0ff870049a27195f38baacc (patch) | |
tree | 565b50ddb2e2b9702160c697555043862617d264 | |
parent | ea7d3b8476f3a22ef83371f4dedaa22e5d7ce0ac (diff) | |
download | cogl-bb1f787e6ae70eb5a0ff870049a27195f38baacc.tar.gz |
cogl-error.h: add COGL_BEGIN_DECLS/COGL_END_DECLS
Fixes 'undefined reference to cogl_error_free' when using g++.
Signed-off-by: Andreas Oberritter <obi@saftware.de>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
(cherry picked from commit 41c54fcaba5b4bf76a0e943bac6bca777f3dae2f)
-rw-r--r-- | cogl/cogl-error.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cogl/cogl-error.h b/cogl/cogl-error.h index 1b6a9519..ef6ee7e3 100644 --- a/cogl/cogl-error.h +++ b/cogl/cogl-error.h @@ -30,6 +30,8 @@ #include "cogl-types.h" +COGL_BEGIN_DECLS + /** * SECTION:cogl-error * @short_description: A way for Cogl to throw exceptions @@ -173,4 +175,6 @@ cogl_error_matches (CoglError *error, #define COGL_GLIB_ERROR(COGL_ERROR) ((CoglError *)COGL_ERROR) #endif +COGL_END_DECLS + #endif /* __COGL_ERROR_H__ */ |