summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-06-05 13:56:33 +0800
committerEric Anholt <eric@anholt.net>2015-06-05 17:50:45 -0700
commitd88c639e63099c5143a0b06214aa80161c8d5a95 (patch)
tree46f1878e75cfee57094945289b803a382fd358ef /include
parent136cf854248118b1f2e3582df868cdecd1d5fb7b (diff)
downloadlibepoxy-d88c639e63099c5143a0b06214aa80161c8d5a95.tar.gz
Fix public headers for building in Visual Studio
Ensure that we also have import/export decorations for the prototypes, as Visual Studio does not like such decorations on the function definitions without the prototypes decorated as well, when the function prototypes exist.
Diffstat (limited to 'include')
-rw-r--r--include/epoxy/gl.h6
-rw-r--r--include/epoxy/wgl.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/include/epoxy/gl.h b/include/epoxy/gl.h
index bbc06c0..0be3a66 100644
--- a/include/epoxy/gl.h
+++ b/include/epoxy/gl.h
@@ -93,9 +93,9 @@ extern "C" {
#include "epoxy/gl_generated.h"
-bool epoxy_has_gl_extension(const char *extension);
-bool epoxy_is_desktop_gl(void);
-int epoxy_gl_version(void);
+EPOXY_IMPORTEXPORT bool epoxy_has_gl_extension(const char *extension);
+EPOXY_IMPORTEXPORT bool epoxy_is_desktop_gl(void);
+EPOXY_IMPORTEXPORT int epoxy_gl_version(void);
#ifdef __cplusplus
} /* extern "C" */
diff --git a/include/epoxy/wgl.h b/include/epoxy/wgl.h
index 2c4682f..fdd7b4f 100644
--- a/include/epoxy/wgl.h
+++ b/include/epoxy/wgl.h
@@ -54,8 +54,8 @@ extern "C" {
#include "epoxy/wgl_generated.h"
-bool epoxy_has_wgl_extension(HDC hdc, const char *extension);
-void epoxy_handle_external_wglMakeCurrent(void);
+EPOXY_IMPORTEXPORT bool epoxy_has_wgl_extension(HDC hdc, const char *extension);
+EPOXY_IMPORTEXPORT void epoxy_handle_external_wglMakeCurrent(void);
#ifdef __cplusplus
} /* extern "C" */