diff --git a/src/pal/pal_windows.h b/src/pal/pal_windows.h index 3b12b62..12f21eb 100644 --- a/src/pal/pal_windows.h +++ b/src/pal/pal_windows.h @@ -22,13 +22,13 @@ namespace snmalloc /** * The number of times that the memory pressure notification has fired. */ - static std::atomic pressure_epoch; + static inline std::atomic pressure_epoch; /** * A flag indicating that we have tried to register for low-memory * notifications. */ - static std::atomic registered_for_notifications; - static HANDLE lowMemoryObject; + static inline std::atomic registered_for_notifications; + static inline HANDLE lowMemoryObject; /** * Callback, used when the system delivers a low-memory notification. This * simply increments an atomic counter each time the notification is raised. @@ -231,8 +231,5 @@ namespace snmalloc } # endif }; - inline std::atomic PALWindows::pressure_epoch; - inline std::atomic PALWindows::registered_for_notifications; - inline HANDLE PALWindows::lowMemoryObject; } #endif