From f703c3cc1fb72bb38eb0a79b56dbb34115f70b85 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Wed, 27 May 2020 10:02:11 +0300 Subject: [PATCH] made the header compatible with C++ --- miniglut.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/miniglut.h b/miniglut.h index f5b2daf..a7b8659 100644 --- 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); +#ifdef __cplusplus +extern "C" { +#endif 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); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* MINIGLUT_H_ */ -- 1.7.10.4