diff options
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs b/vendor/windows-sys/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs index a5a4622db..5c924d689 100644 --- a/vendor/windows-sys/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs +++ b/vendor/windows-sys/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs @@ -1,4 +1,4 @@ -#[link(name = "windows")] +#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13,6 +13,12 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn ReadThreadProfilingData(performancedatahandle: super::super::super::Foundation::HANDLE, flags: u32, performancedata: *mut PERFORMANCE_DATA) -> u32; } +#[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] +pub type HARDWARE_COUNTER_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] +pub const PMCCounter: HARDWARE_COUNTER_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] +pub const MaxHardwareCounterType: HARDWARE_COUNTER_TYPE = 1i32; #[repr(C)] #[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] pub struct HARDWARE_COUNTER_DATA { @@ -26,12 +32,6 @@ impl ::core::clone::Clone for HARDWARE_COUNTER_DATA { *self } } -#[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] -pub type HARDWARE_COUNTER_TYPE = i32; -#[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] -pub const PMCCounter: HARDWARE_COUNTER_TYPE = 0i32; -#[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] -pub const MaxHardwareCounterType: HARDWARE_COUNTER_TYPE = 1i32; #[repr(C)] #[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] pub struct PERFORMANCE_DATA { |