diff --git a/libstratosphere/include/stratosphere.hpp b/libstratosphere/include/stratosphere.hpp index d4666602..bc5547f9 100644 --- a/libstratosphere/include/stratosphere.hpp +++ b/libstratosphere/include/stratosphere.hpp @@ -24,10 +24,6 @@ /* libvapours (pulls in util, svc, results). */ #include -#if defined(ATMOSPHERE_OS_WINDOWS) -#include -#endif - /* Libstratosphere diagnostics. */ #include diff --git a/libstratosphere/source/crypto/crypto_csrng.os.windows.cpp b/libstratosphere/source/crypto/crypto_csrng.os.windows.cpp index ef570745..a75f0b60 100644 --- a/libstratosphere/source/crypto/crypto_csrng.os.windows.cpp +++ b/libstratosphere/source/crypto/crypto_csrng.os.windows.cpp @@ -14,6 +14,7 @@ * along with this program. If not, see . */ #include +#include #include #include diff --git a/libstratosphere/source/diag/impl/diag_backtrace_impl.os.generic.cpp b/libstratosphere/source/diag/impl/diag_backtrace_impl.os.generic.cpp index 9cd49070..db9a076a 100644 --- a/libstratosphere/source/diag/impl/diag_backtrace_impl.os.generic.cpp +++ b/libstratosphere/source/diag/impl/diag_backtrace_impl.os.generic.cpp @@ -15,7 +15,9 @@ */ #include -#if defined(ATMOSPHERE_OS_LINUX) || defined(ATMOSPHERE_OS_MACOS) +#if defined(ATMOSPHERE_OS_WINDOWS) +#include +#elif defined(ATMOSPHERE_OS_LINUX) || defined(ATMOSPHERE_OS_MACOS) #include #include #endif diff --git a/libstratosphere/source/diag/impl/diag_default_abort_observer.cpp b/libstratosphere/source/diag/impl/diag_default_abort_observer.cpp index 4c022480..3e381745 100644 --- a/libstratosphere/source/diag/impl/diag_default_abort_observer.cpp +++ b/libstratosphere/source/diag/impl/diag_default_abort_observer.cpp @@ -16,6 +16,10 @@ #include #include "diag_dump_stack_trace.hpp" +#if defined(ATMOSPHERE_OS_WINDOWS) +#include +#endif + namespace ams::diag::impl { #if defined(AMS_BUILD_FOR_DEBUGGING) || defined(AMS_BUILD_FOR_DEBUGGING) diff --git a/libstratosphere/source/diag/impl/diag_symbol_impl.os.windows.cpp b/libstratosphere/source/diag/impl/diag_symbol_impl.os.windows.cpp index 15d9ea6a..20660f6b 100644 --- a/libstratosphere/source/diag/impl/diag_symbol_impl.os.windows.cpp +++ b/libstratosphere/source/diag/impl/diag_symbol_impl.os.windows.cpp @@ -14,6 +14,7 @@ * along with this program. If not, see . */ #include +#include #include "diag_symbol_impl.hpp" #include diff --git a/libstratosphere/source/fssrv/impl/fssrv_utility.cpp b/libstratosphere/source/fssrv/impl/fssrv_utility.cpp index fe99a928..d5489b4e 100644 --- a/libstratosphere/source/fssrv/impl/fssrv_utility.cpp +++ b/libstratosphere/source/fssrv/impl/fssrv_utility.cpp @@ -16,7 +16,10 @@ #include #include "fssrv_utility.hpp" -#if defined(ATMOSPHERE_OS_LINUX) + +#if defined(ATMOSPHERE_OS_WINDOWS) +#include +#elif defined(ATMOSPHERE_OS_LINUX) #include #elif defined(ATMOSPHERE_OS_MACOS) #include diff --git a/libstratosphere/source/fssystem/fssystem_local_file_system.cpp b/libstratosphere/source/fssystem/fssystem_local_file_system.cpp index 25613269..6c258a89 100644 --- a/libstratosphere/source/fssystem/fssystem_local_file_system.cpp +++ b/libstratosphere/source/fssystem/fssystem_local_file_system.cpp @@ -15,6 +15,7 @@ */ #include #if defined(ATMOSPHERE_OS_WINDOWS) +#include #include #include #elif defined(ATMOSPHERE_OS_LINUX) || defined(ATMOSPHERE_OS_MACOS) diff --git a/libstratosphere/source/mem/impl/mem_impl_platform.os.windows.cpp b/libstratosphere/source/mem/impl/mem_impl_platform.os.windows.cpp index 7f442448..cfa31163 100644 --- a/libstratosphere/source/mem/impl/mem_impl_platform.os.windows.cpp +++ b/libstratosphere/source/mem/impl/mem_impl_platform.os.windows.cpp @@ -14,6 +14,7 @@ * along with this program. If not, see . */ #include +#include #include #include "mem_impl_platform.hpp" diff --git a/libstratosphere/source/os/impl/os_debug_impl.os.windows.hpp b/libstratosphere/source/os/impl/os_debug_impl.os.windows.hpp index 7e596f36..7d25d64a 100644 --- a/libstratosphere/source/os/impl/os_debug_impl.os.windows.hpp +++ b/libstratosphere/source/os/impl/os_debug_impl.os.windows.hpp @@ -15,6 +15,7 @@ */ #pragma once #include +#include namespace ams::os::impl { diff --git a/libstratosphere/source/os/impl/os_giant_lock.os.windows.cpp b/libstratosphere/source/os/impl/os_giant_lock.os.windows.cpp index 2116689c..1fb56adf 100644 --- a/libstratosphere/source/os/impl/os_giant_lock.os.windows.cpp +++ b/libstratosphere/source/os/impl/os_giant_lock.os.windows.cpp @@ -14,6 +14,7 @@ * along with this program. If not, see . */ #include +#include #include "os_giant_lock.os.windows.hpp" namespace ams::os::impl { diff --git a/libstratosphere/source/os/impl/os_inter_process_event_impl.os.windows.cpp b/libstratosphere/source/os/impl/os_inter_process_event_impl.os.windows.cpp index dc7d2cae..7041d95c 100644 --- a/libstratosphere/source/os/impl/os_inter_process_event_impl.os.windows.cpp +++ b/libstratosphere/source/os/impl/os_inter_process_event_impl.os.windows.cpp @@ -14,6 +14,7 @@ * along with this program. If not, see . */ #include +#include #include "os_inter_process_event.hpp" #include "os_inter_process_event_impl.os.windows.hpp" #include "os_giant_lock.hpp" diff --git a/libstratosphere/source/os/impl/os_internal_condition_variable_impl.os.windows.cpp b/libstratosphere/source/os/impl/os_internal_condition_variable_impl.os.windows.cpp index d683e969..2ffcc89c 100644 --- a/libstratosphere/source/os/impl/os_internal_condition_variable_impl.os.windows.cpp +++ b/libstratosphere/source/os/impl/os_internal_condition_variable_impl.os.windows.cpp @@ -14,6 +14,7 @@ * along with this program. If not, see . */ #include +#include #include "os_internal_critical_section_impl.os.windows.hpp" #include "os_timeout_helper.hpp" #include "os_thread_manager.hpp" diff --git a/libstratosphere/source/os/impl/os_internal_critical_section_impl.os.windows.cpp b/libstratosphere/source/os/impl/os_internal_critical_section_impl.os.windows.cpp index 2ede6ced..7acb2193 100644 --- a/libstratosphere/source/os/impl/os_internal_critical_section_impl.os.windows.cpp +++ b/libstratosphere/source/os/impl/os_internal_critical_section_impl.os.windows.cpp @@ -14,6 +14,7 @@ * along with this program. If not, see . */ #include +#include #include "os_internal_critical_section_impl.os.windows.hpp" namespace ams::os::impl { diff --git a/libstratosphere/source/os/impl/os_native_handle_impl.os.windows.hpp b/libstratosphere/source/os/impl/os_native_handle_impl.os.windows.hpp index e181cb47..6451a4ca 100644 --- a/libstratosphere/source/os/impl/os_native_handle_impl.os.windows.hpp +++ b/libstratosphere/source/os/impl/os_native_handle_impl.os.windows.hpp @@ -15,6 +15,7 @@ */ #pragma once #include +#include namespace ams::os::impl { diff --git a/libstratosphere/source/os/impl/os_process_handle_impl.os.windows.hpp b/libstratosphere/source/os/impl/os_process_handle_impl.os.windows.hpp index 5146698c..78fa4047 100644 --- a/libstratosphere/source/os/impl/os_process_handle_impl.os.windows.hpp +++ b/libstratosphere/source/os/impl/os_process_handle_impl.os.windows.hpp @@ -15,6 +15,7 @@ */ #pragma once #include +#include namespace ams::os::impl { diff --git a/libstratosphere/source/os/impl/os_thread_manager_impl.os.windows.hpp b/libstratosphere/source/os/impl/os_thread_manager_impl.os.windows.hpp index b7a8ae4a..1b47aae2 100644 --- a/libstratosphere/source/os/impl/os_thread_manager_impl.os.windows.hpp +++ b/libstratosphere/source/os/impl/os_thread_manager_impl.os.windows.hpp @@ -22,7 +22,7 @@ namespace ams::os::impl { NON_COPYABLE(ThreadManagerWindowsImpl); NON_MOVEABLE(ThreadManagerWindowsImpl); private: - DWORD m_tls_index; + u32 m_tls_index; public: explicit ThreadManagerWindowsImpl(ThreadType *main_thread); diff --git a/libstratosphere/source/os/impl/os_tick_manager_impl.os.windows.hpp b/libstratosphere/source/os/impl/os_tick_manager_impl.os.windows.hpp index e09ca29f..88cccf0c 100644 --- a/libstratosphere/source/os/impl/os_tick_manager_impl.os.windows.hpp +++ b/libstratosphere/source/os/impl/os_tick_manager_impl.os.windows.hpp @@ -15,6 +15,11 @@ */ #pragma once #include + +#if defined(ATMOSPHERE_OS_WINDOWS) +#include +#endif + #include namespace ams::os::impl {