summaryrefslogtreecommitdiffhomepage
path: root/file.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-03 18:42:02 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-03 18:42:02 +0100
commit8299ba653b6a5bc85cf16de89df6d52055895512 (patch)
tree65b6284fa3f01e9340b03a13ccc90ee5b47490c4 /file.h
parenta82d947a594b01af54e056473799ebab619e2bd2 (diff)
Fix exports
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);
}