diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-03 18:42:02 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-03 18:42:02 +0100 |
commit | 8299ba653b6a5bc85cf16de89df6d52055895512 (patch) | |
tree | 65b6284fa3f01e9340b03a13ccc90ee5b47490c4 /file.h | |
parent | a82d947a594b01af54e056473799ebab619e2bd2 (diff) |
Fix exports
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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); } |