[Win] Remove unnecessary #if clauses

This commit is contained in:
Stefanos A. 2014-01-08 00:45:42 +01:00
parent e260a42954
commit 51baed7286

View file

@ -241,9 +241,7 @@ namespace OpenTK.Platform.Windows
#region CallWindowProc #region CallWindowProc
#if RELEASE
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
#endif
[DllImport("user32.dll", SetLastError = true)] [DllImport("user32.dll", SetLastError = true)]
internal static extern LRESULT CallWindowProc(WNDPROC lpPrevWndFunc, HWND hWnd, WindowMessage Msg, internal static extern LRESULT CallWindowProc(WNDPROC lpPrevWndFunc, HWND hWnd, WindowMessage Msg,
WPARAM wParam, LPARAM lParam); WPARAM wParam, LPARAM lParam);
@ -283,28 +281,20 @@ namespace OpenTK.Platform.Windows
return SetWindowLong(handle, GetWindowLongOffsets.WNDPROC, Marshal.GetFunctionPointerForDelegate(newValue)); return SetWindowLong(handle, GetWindowLongOffsets.WNDPROC, Marshal.GetFunctionPointerForDelegate(newValue));
} }
#if RELASE
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
#endif
[DllImport("user32.dll", SetLastError = true)] [DllImport("user32.dll", SetLastError = true)]
static extern LONG SetWindowLong(HWND hWnd, GetWindowLongOffsets nIndex, LONG dwNewLong); static extern LONG SetWindowLong(HWND hWnd, GetWindowLongOffsets nIndex, LONG dwNewLong);
#if RELASE
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
#endif
[DllImport("user32.dll", SetLastError = true)] [DllImport("user32.dll", SetLastError = true)]
static extern LONG_PTR SetWindowLongPtr(HWND hWnd, GetWindowLongOffsets nIndex, LONG_PTR dwNewLong); static extern LONG_PTR SetWindowLongPtr(HWND hWnd, GetWindowLongOffsets nIndex, LONG_PTR dwNewLong);
#if RELASE
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
#endif
[DllImport("user32.dll", SetLastError = true)] [DllImport("user32.dll", SetLastError = true)]
static extern LONG SetWindowLong(HWND hWnd, GetWindowLongOffsets nIndex, static extern LONG SetWindowLong(HWND hWnd, GetWindowLongOffsets nIndex,
[MarshalAs(UnmanagedType.FunctionPtr)]WindowProcedure dwNewLong); [MarshalAs(UnmanagedType.FunctionPtr)]WindowProcedure dwNewLong);
#if RELASE
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
#endif
[DllImport("user32.dll", SetLastError = true)] [DllImport("user32.dll", SetLastError = true)]
static extern LONG_PTR SetWindowLongPtr(HWND hWnd, GetWindowLongOffsets nIndex, static extern LONG_PTR SetWindowLongPtr(HWND hWnd, GetWindowLongOffsets nIndex,
[MarshalAs(UnmanagedType.FunctionPtr)]WindowProcedure dwNewLong); [MarshalAs(UnmanagedType.FunctionPtr)]WindowProcedure dwNewLong);
@ -407,9 +397,7 @@ namespace OpenTK.Platform.Windows
#region DispatchMessage #region DispatchMessage
#if RELEASE [SuppressUnmanagedCodeSecurity]
[System.Security.SuppressUnmanagedCodeSecurity]
#endif
[DllImport("User32.dll"), CLSCompliant(false)] [DllImport("User32.dll"), CLSCompliant(false)]
internal static extern LRESULT DispatchMessage(ref MSG msg); internal static extern LRESULT DispatchMessage(ref MSG msg);
@ -417,9 +405,7 @@ namespace OpenTK.Platform.Windows
#region TranslateMessage #region TranslateMessage
#if RELEASE [SuppressUnmanagedCodeSecurity]
[System.Security.SuppressUnmanagedCodeSecurity]
#endif
[DllImport("User32.dll"), CLSCompliant(false)] [DllImport("User32.dll"), CLSCompliant(false)]
internal static extern BOOL TranslateMessage(ref MSG lpMsg); internal static extern BOOL TranslateMessage(ref MSG lpMsg);
@ -3752,7 +3738,7 @@ namespace OpenTK.Platform.Windows
#region WindowMessage #region WindowMessage
internal enum WindowMessage : uint internal enum WindowMessage : int
{ {
NULL = 0x0000, NULL = 0x0000,
CREATE = 0x0001, CREATE = 0x0001,