mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
fix: add YAML_CPP_API for windows-shared library builds
This commit is contained in:

committed by
Jesse Beder

parent
d8de96524c
commit
82f3c04081
@@ -4,13 +4,15 @@
|
|||||||
#ifndef YAML_H_FP_TO_STRING
|
#ifndef YAML_H_FP_TO_STRING
|
||||||
#define YAML_H_FP_TO_STRING
|
#define YAML_H_FP_TO_STRING
|
||||||
|
|
||||||
|
#include "yaml-cpp/dll.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
// "precision = 0" refers to shortest known unique representation of the value
|
// "precision = 0" refers to shortest known unique representation of the value
|
||||||
std::string FpToString(float v, size_t precision = 0);
|
YAML_CPP_API std::string FpToString(float v, size_t precision = 0);
|
||||||
std::string FpToString(double v, size_t precision = 0);
|
YAML_CPP_API 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(long double v, size_t precision = 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user