Use begin/end macros in cogl-primitives.h

Protect the people using a C++ compiler from the dark abyss of C code.

http://bugzilla.openedhand.com/show_bug.cgi?id=2049
This commit is contained in:
Emmanuele Bassi 2010-03-25 09:33:26 +00:00
parent e573eaf2ed
commit 93754d8dc0

View File

@ -24,6 +24,10 @@
#ifndef __COGL_PRIMITIVES_H #ifndef __COGL_PRIMITIVES_H
#define __COGL_PRIMITIVES_H #define __COGL_PRIMITIVES_H
#include <glib.h>
G_BEGIN_DECLS
/** /**
* SECTION:cogl-primitives * SECTION:cogl-primitives
* @short_description: Functions that draw various primitive 3D shapes * @short_description: Functions that draw various primitive 3D shapes
@ -181,4 +185,6 @@ cogl_polygon (const CoglTextureVertex *vertices,
unsigned int n_vertices, unsigned int n_vertices,
gboolean use_color); gboolean use_color);
G_END_DECLS
#endif /* __COGL_PRIMITIVES_H */ #endif /* __COGL_PRIMITIVES_H */