summaryrefslogtreecommitdiffhomepage
path: root/opentrack-api/context.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-03 12:39:37 -0800
committerStanislaw Halik <sthalik@misaki.pl>2013-11-03 12:39:37 -0800
commit2ea63a9a33cfedf629738e8287395da0f336bf24 (patch)
treeb91268f7dd81c8b7f7d04d1aa869ea55e1b923a4 /opentrack-api/context.cpp
parenteaa69914338be6df77e101ba374a8a184655a7a6 (diff)
parenta36b0c4fb8cfd3d28710f0cb7534e8a0d86cc3cb (diff)
Merge pull request #8 from alterscape/msvc2012_compat
MSVC 11 expects __declspec(dllexport) before return type.
Diffstat (limited to 'opentrack-api/context.cpp')
-rw-r--r--opentrack-api/context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/opentrack-api/context.cpp b/opentrack-api/context.cpp
index 5b218f93..04fa5ac2 100644
--- a/opentrack-api/context.cpp
+++ b/opentrack-api/context.cpp
@@ -93,17 +93,17 @@ opentrack_ctx::~opentrack_ctx()
extern "C"
{
-const char** OPENTRACK_EXPORT opentrack_enum_trackers(opentrack ctx)
+OPENTRACK_EXPORT const char** opentrack_enum_trackers(opentrack ctx)
{
return const_cast<const char**>(ctx->list);
}
-opentrack OPENTRACK_EXPORT opentrack_make_ctx(int argc, char** argv, void* window_parent)
+OPENTRACK_EXPORT opentrack opentrack_make_ctx(int argc, char** argv, void* window_parent)
{
return new opentrack_ctx(argc, argv, window_parent);
}
-void OPENTRACK_EXPORT opentrack_finalize_ctx(opentrack foo)
+OPENTRACK_EXPORT void opentrack_finalize_ctx(opentrack foo)
{
delete foo;
}