Skip to content

Commit

Permalink
Removed need for a vcpkg patch file.
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalInBlue committed Feb 27, 2021
1 parent ee16f37 commit b9bbe63
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

using namespace celero;

#ifdef WIN32
#ifdef _WIN32
#include <windows.h>
#include <stdio.h>
#else
Expand Down
8 changes: 5 additions & 3 deletions src/Exceptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@

#include <celero/Exceptions.h>

//

#include <celero/Console.h>
#include <celero/TestFixture.h>

#ifdef WIN32
#ifdef _WIN32
#include <windows.h>
#endif // WIN32

Expand Down Expand Up @@ -210,7 +212,7 @@ namespace celero
celero::console::SetConsoleColor(celero::console::ConsoleColor::Default);
return std::make_pair(false, 0);
}
#else // CELERO_HAS_SEH
#else // CELERO_HAS_SEH
return std::make_pair(true, test.run(threads, calls, experimentValue));
#endif // CELERO_HAS_SEH
}
Expand Down Expand Up @@ -239,7 +241,7 @@ namespace celero
}

return std::make_pair(false, 0);
#else // CELERO_HAS_EXCEPTIONS
#else // CELERO_HAS_EXCEPTIONS
return RunAndCatchSEHExc(test, threads, calls, experimentValue);
#endif // CELERO_HAS_EXCEPTIONS
}
Expand Down
3 changes: 2 additions & 1 deletion src/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@

#include <celero/Print.h>
#include <celero/Timer.h>

#include <iostream>

#ifdef WIN32
#ifdef _WIN32
#include <windows.h>
LARGE_INTEGER QPCFrequency;
#else
Expand Down
4 changes: 2 additions & 2 deletions src/Utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#include <celero/Print.h>
#include <celero/Utilities.h>

#ifdef WIN32
#ifdef _WIN32
#include <windows.h>

//
#include <powrprof.h>
#endif

Expand Down

0 comments on commit b9bbe63

Please sign in to comment.