Skip to content

Commit

Permalink
fix: add YAML_CPP_API for windows-shared library builds
Browse files Browse the repository at this point in the history
  • Loading branch information
SGSSGene committed Jul 30, 2024
1 parent fe25a35 commit acf2e70
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions include/yaml-cpp/fptostring.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit acf2e70

Please sign in to comment.