projects
/
miniglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made the header compatible with C++
[miniglut]
/
miniglut.h
diff --git
a/miniglut.h
b/miniglut.h
index
f5b2daf
..
a7b8659
100644
(file)
--- a/
miniglut.h
+++ b/
miniglut.h
@@
-102,6
+102,9
@@
typedef void (*glut_cb_motion)(int x, int y);
typedef void (*glut_cb_sbmotion)(int x, int y, int z);
typedef void (*glut_cb_sbbutton)(int bn, int state);
typedef void (*glut_cb_sbmotion)(int x, int y, int z);
typedef void (*glut_cb_sbbutton)(int bn, int state);
+#ifdef __cplusplus
+extern "C" {
+#endif
void glutInit(int *argc, char **argv);
void glutInitWindowPosition(int x, int y);
void glutInit(int *argc, char **argv);
void glutInitWindowPosition(int x, int y);
@@
-154,4
+157,8
@@
void glutWireTorus(float inner_rad, float outer_rad, int sides, int rings);
void glutSolidTeapot(float size);
void glutWireTeapot(float size);
void glutSolidTeapot(float size);
void glutWireTeapot(float size);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* MINIGLUT_H_ */
#endif /* MINIGLUT_H_ */