Fixed the #ifdefs for the api stuff

This commit is contained in:
Jesse Beder
2011-10-18 14:47:35 -05:00
parent 77cc54585f
commit 70e1eb3f9c
5 changed files with 6 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ public:
void parse(std::istream& input)
{
try {
#if YAML_CPP_OLD_API
#ifdef YAML_CPP_OLD_API
YAML::Parser parser(input);
YAML::Node doc;
while(parser.GetNextDocument(doc)) {