Skip to content

Commit b71ccbb

Browse files
authored
Add Missing #if WINAPPSDK
1 parent 4c4f776 commit b71ccbb

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

components/TitleBar/src/InfoHelper.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Windows.ApplicationModel;
1+
#if WINAPPSDK
2+
using Windows.ApplicationModel;
23
using Windows.Storage;
34
using Windows.System.Profile;
45

@@ -32,3 +33,4 @@ static InfoHelper()
3233
);
3334
}
3435
}
36+
#endif

components/TitleBar/src/NativeMethods.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Runtime.InteropServices;
1+
#if WINAPPSDK
2+
using System.Runtime.InteropServices;
23

34
namespace CommunityToolkit.WinUI.Controls;
45
internal static class NativeMethods
@@ -82,3 +83,4 @@ public static IntPtr SetWindowLongAuto(IntPtr hWnd, int nIndex, IntPtr dwNewLong
8283
[DllImport("user32.dll")]
8384
public static extern IntPtr CallWindowProc(IntPtr lpPrevWndFunc, IntPtr hWnd, WindowMessage Msg, IntPtr wParam, IntPtr lParam);
8485
}
86+
#endif

components/TitleBar/src/WndProcHelper.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Runtime.InteropServices;
1+
#if WINAPPSDK
2+
using System.Runtime.InteropServices;
23
using WinRT.Interop;
34

45
namespace CommunityToolkit.WinUI.Controls;
@@ -47,3 +48,4 @@ public void RegisterInputNonClientPointerSourceWndProc(WNDPROC wndProc)
4748
}
4849
}
4950
}
51+
#endif

0 commit comments

Comments
 (0)