From b6f2240aea4a496b288215875814309275f3b4f0 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Fri, 13 Mar 2020 17:38:20 +0300 Subject: Initial support for shared builds. --- include/tgbot/tools/FileTools.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/tgbot/tools/FileTools.h') diff --git a/include/tgbot/tools/FileTools.h b/include/tgbot/tools/FileTools.h index d497d7c..82291f4 100644 --- a/include/tgbot/tools/FileTools.h +++ b/include/tgbot/tools/FileTools.h @@ -1,6 +1,8 @@ #ifndef TGBOT_FILETOOLS_H #define TGBOT_FILETOOLS_H +#include "tgbot/export.h" + #include /** @@ -14,6 +16,7 @@ namespace FileTools { * @throws exception of type std::ifstream::failure if reading fails * @return string with file contents */ +TGBOT_API std::string read(const std::string& filePath); /** @@ -21,6 +24,7 @@ std::string read(const std::string& filePath); * @param filePath Path to a file * @throws exception of type std::ifstream::failure if writing fails */ +TGBOT_API void write(const std::string& content, const std::string& filePath); }; -- cgit v1.2.3