Skip to content

Commit

Permalink
fix ordering of windows includes
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Jan 13, 2023
1 parent b0bb589 commit a88dd9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int main(int argc, char **argv) {
double value{0.0}; // = 3.14;
app.add_option("-d,--double", value, "Some Value");

CLI11_PARSE(app, argc, argv)
CLI11_PARSE(app, argc, argv);

std::cout << "Working on file: " << file << ", direct count: " << app.count("--file")
<< ", opt count: " << opt->count() << std::endl;
Expand Down
10 changes: 6 additions & 4 deletions include/CLI/impl/Argv_inl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@
#endif
#endif
#define NOMINMAX
#include <errhandlingapi.h>
#include <processenv.h>
//first
#include <windef.h>
//second
#include <winbase.h>
//third
#include <processthreadsapi.h>
#include <shellapi.h>
#include <winbase.h>
#include <windef.h>

#undef NOMINMAX
#elif defined(__APPLE__)
#include <crt_externs.h>
Expand Down

0 comments on commit a88dd9b

Please sign in to comment.