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)
This commit is contained in:
Andreas Oberritter 2013-05-28 19:47:12 +02:00 committed by Neil Roberts
parent ea7d3b8476
commit bb1f787e6a

View File

@ -30,6 +30,8 @@
#include "cogl-types.h" #include "cogl-types.h"
COGL_BEGIN_DECLS
/** /**
* SECTION:cogl-error * SECTION:cogl-error
* @short_description: A way for Cogl to throw exceptions * @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) #define COGL_GLIB_ERROR(COGL_ERROR) ((CoglError *)COGL_ERROR)
#endif #endif
COGL_END_DECLS
#endif /* __COGL_ERROR_H__ */ #endif /* __COGL_ERROR_H__ */