strat: only include windows.h in translation units where actually needed

This commit is contained in:
Michael Scire 2022-03-17 14:02:02 -07:00 committed by SciresM
parent 000713186f
commit ca142889c4
17 changed files with 28 additions and 7 deletions

View file

@ -15,7 +15,9 @@
*/
#include <stratosphere.hpp>
#if defined(ATMOSPHERE_OS_LINUX) || defined(ATMOSPHERE_OS_MACOS)
#if defined(ATMOSPHERE_OS_WINDOWS)
#include <stratosphere/windows.hpp>
#elif defined(ATMOSPHERE_OS_LINUX) || defined(ATMOSPHERE_OS_MACOS)
#include <fcntl.h>
#include <unistd.h>
#endif