/**
 * @file version.cpp
 * @author Ryan Curtin
 *
 * The implementation of GetVersion().
 */
#include "version.hpp"

#include <sstream>

// If we are not a git revision, just use the macros to assemble the version
// name.
std::string mlpack::util::GetVersion()
{
#ifndef __MLPACK_GIT_VERSION
  std::stringstream o;
  o << "mlpack " << __MLPACK_VERSION_MAJOR << "." << __MLPACK_VERSION_MINOR
      << "." << __MLPACK_VERSION_PATCH;
  return o.str();
#else
  // This file is generated by CMake as necessary and contains just a return
  // statement with the git revision in it.
  #include "gitversion.hpp"
#endif
}

/**
 * @file version.cpp
 * @author Ryan Curtin
 *
 * The implementation of GetVersion().
 */
#include "version.hpp"

#include <sstream>

// If we are not a git revision, just use the macros to assemble the version
// name.
std::string mlpack::util::GetVersion()
{
#ifndef __MLPACK_SUBVERSION
  std::stringstream o;
  o << "mlpack " << __MLPACK_VERSION_MAJOR << "." << __MLPACK_VERSION_MINOR
      << "." << __MLPACK_VERSION_PATCH;
  return o.str();
#else
  #include "svnversion.hpp"
#endif
}

--- 
+++ 
@@ -12,12 +12,14 @@
 // name.
 std::string mlpack::util::GetVersion()
 {
-#ifndef __MLPACK_SUBVERSION
+#ifndef __MLPACK_GIT_VERSION
   std::stringstream o;
   o << "mlpack " << __MLPACK_VERSION_MAJOR << "." << __MLPACK_VERSION_MINOR
       << "." << __MLPACK_VERSION_PATCH;
   return o.str();
 #else
-  #include "svnversion.hpp"
+  // This file is generated by CMake as necessary and contains just a return
+  // statement with the git revision in it.
+  #include "gitversion.hpp"
 #endif
 }
Add a comment, and fix macro name.
