From f15720112eb64524bfd64c27f8f5b5ad074a9411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Thu, 8 Oct 2015 15:42:29 +0200 Subject: [PATCH] Add header for dlls --- WIN-packages/dialogs_win.h | 11 +++++++++++ src/dialogs_win.cc | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 WIN-packages/dialogs_win.h diff --git a/WIN-packages/dialogs_win.h b/WIN-packages/dialogs_win.h new file mode 100644 index 0000000..37a1d37 --- /dev/null +++ b/WIN-packages/dialogs_win.h @@ -0,0 +1,11 @@ +extern "C" { +#ifndef JUCI_C_DIALOGS +#define JUCI_C_DIALOGS + __declspec(dllimport) const char* c_select_folder(); + __declspec(dllimport) const char* c_select_file(); + __declspec(dllimport) const char* c_new_file(); + __declspec(dllimport) const char* c_new_folder(); + __declspec(dllimport) const char* c_save_file(); +#endif // JUCI_C_DIALOGS +}; + diff --git a/src/dialogs_win.cc b/src/dialogs_win.cc index dd3ed51..e6891ee 100644 --- a/src/dialogs_win.cc +++ b/src/dialogs_win.cc @@ -1,6 +1,6 @@ #ifdef _WIN32 #include "dialogs.h" -#include +#include std::string Dialog::select_folder() { return c_select_folder(); @@ -21,4 +21,4 @@ std::string Dialog::select_file() { std::string Dialog::save_file() { return c_save_file(); } -#endif \ No newline at end of file +#endif