--- a/docopt.h +++ b/docopt.h @@ -9,13 +9,6 @@ #ifndef docopt__docopt_h_ #define docopt__docopt_h_ -#include "docopt_value.h" - -#include -#include -#include -#include - #ifdef DOCOPT_HEADER_ONLY #define DOCOPT_INLINE inline #define DOCOPT_API @@ -41,6 +34,13 @@ #endif #endif +#include "docopt_value.h" + +#include +#include +#include +#include + namespace docopt { // Usage string could not be parsed (ie, the developer did something wrong) --- a/docopt_value.h +++ b/docopt_value.h @@ -105,7 +105,7 @@ namespace docopt { }; /// Write out the contents to the ostream - std::ostream& operator<<(std::ostream&, value const&); + DOCOPT_API std::ostream& operator<<(std::ostream&, value const&); } namespace std {