fix(core): export correctly some symbols on windows

This commit is contained in:
Ronan Abhamon 2018-05-16 14:19:05 +02:00
parent 76d2303c40
commit 4e5a76afd0
2 changed files with 2 additions and 3 deletions

View file

@ -83,9 +83,8 @@ namespace Utils {
LINPHONE_PUBLIC std::string toString (long double val); LINPHONE_PUBLIC std::string toString (long double val);
LINPHONE_PUBLIC std::string toString (const void *val); LINPHONE_PUBLIC std::string toString (const void *val);
LINPHONE_PUBLIC
template<typename T, typename = typename std::enable_if<IsDefinedEnum<T>::value, T>::type> template<typename T, typename = typename std::enable_if<IsDefinedEnum<T>::value, T>::type>
inline std::string toString (const T &val) { return getEnumValueAsString(val); } LINPHONE_PUBLIC inline std::string toString (const T &val) { return getEnumValueAsString(val); }
LINPHONE_PUBLIC int stoi (const std::string &str, size_t *idx = 0, int base = 10); LINPHONE_PUBLIC int stoi (const std::string &str, size_t *idx = 0, int base = 10);
LINPHONE_PUBLIC long long stoll (const std::string &str, size_t *idx = 0, int base = 10); LINPHONE_PUBLIC long long stoll (const std::string &str, size_t *idx = 0, int base = 10);

View file

@ -30,7 +30,7 @@ class Core;
class CoreAccessorPrivate; class CoreAccessorPrivate;
// Decorator to get a valid core instance. // Decorator to get a valid core instance.
LINPHONE_PUBLIC class CoreAccessor { class LINPHONE_PUBLIC CoreAccessor {
public: public:
CoreAccessor (const std::shared_ptr<Core> &core); CoreAccessor (const std::shared_ptr<Core> &core);
CoreAccessor (const std::shared_ptr<Core> &&core); CoreAccessor (const std::shared_ptr<Core> &&core);