commit 866b05f18e4454a41a1d1c6e83a34a9c1c1f8da3
parent efb32c19c706191d5c770e4b712af8a075a310d9
Author: falkTX <falktx@gmail.com>
Date: Wed, 22 Jan 2014 00:38:51 +0000
Misc
Diffstat:
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp
@@ -27,8 +27,8 @@
#if DGL_OS_WINDOWS
# include "pugl/pugl_win.cpp"
#elif DGL_OS_MAC
-extern "C" {
# include "pugl/pugl_osx_extended.h"
+extern "C" {
struct PuglViewImpl {
int width;
int height;
diff --git a/dgl/src/pugl/pugl_osx_extended.h b/dgl/src/pugl/pugl_osx_extended.h
@@ -23,7 +23,15 @@
#include "pugl.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void puglImplFocus(PuglView* view);
void puglImplSetSize(PuglView* view, unsigned int width, unsigned int height);
void puglImplSetTitle(PuglView* view, const char* title);
void puglImplSetVisible(PuglView* view, bool yesNo);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif