fix: add YAML_CPP_API for windows-shared library builds

This commit is contained in:
Simon Gene Gottlieb
2024-07-30 11:48:12 +02:00
committed by Jesse Beder
parent d8de96524c
commit 82f3c04081

View File

@@ -4,13 +4,15 @@
#ifndef YAML_H_FP_TO_STRING
#define YAML_H_FP_TO_STRING
#include "yaml-cpp/dll.h"
#include <string>
namespace YAML {
// "precision = 0" refers to shortest known unique representation of the value
std::string FpToString(float v, size_t precision = 0);
std::string FpToString(double v, size_t precision = 0);
std::string FpToString(long double v, size_t precision = 0);
YAML_CPP_API std::string FpToString(float v, size_t precision = 0);
YAML_CPP_API std::string FpToString(double v, size_t precision = 0);
YAML_CPP_API std::string FpToString(long double v, size_t precision = 0);
}
#endif