summaryrefslogtreecommitdiffhomepage
path: root/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'file.h')
-rw-r--r--file.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/file.h b/file.h
index e7e4cf6..37653cb 100644
--- a/file.h
+++ b/file.h
@@ -5,11 +5,13 @@
#include <string>
#include <vector>
+#define EXPORT __attribute__((visibility("default")))
+
namespace File {
-std::string getFile(const std::filesystem::path& filename);
-void setFile(const std::filesystem::path& filename, const std::string& s);
-void setFile(const std::filesystem::path& filename, const char* data, size_t size);
-void setFile(const std::filesystem::path& filename, const std::vector<uint8_t>& data);
+EXPORT std::string getFile(const std::filesystem::path& filename);
+EXPORT void setFile(const std::filesystem::path& filename, const std::string& s);
+EXPORT void setFile(const std::filesystem::path& filename, const char* data, size_t size);
+EXPORT void setFile(const std::filesystem::path& filename, const std::vector<uint8_t>& data);
}