Permalink
Browse files

[Win] Remove unnecessary #if clauses

  • Loading branch information...
1 parent e260a42 commit 51baed7286440fba00a27ae8dc57ba5fb319e535 @thefiddler thefiddler committed Jan 7, 2014
Showing with 3 additions and 17 deletions.
  1. +3 −17 Source/OpenTK/Platform/Windows/API.cs
@@ -241,9 +241,7 @@ SetWindowPosFlags flags
#region CallWindowProc
-#if RELEASE
[SuppressUnmanagedCodeSecurity]
-#endif
[DllImport("user32.dll", SetLastError = true)]
internal static extern LRESULT CallWindowProc(WNDPROC lpPrevWndFunc, HWND hWnd, WindowMessage Msg,
WPARAM wParam, LPARAM lParam);
@@ -283,28 +281,20 @@ internal static IntPtr SetWindowLong(IntPtr handle, WindowProcedure newValue)
return SetWindowLong(handle, GetWindowLongOffsets.WNDPROC, Marshal.GetFunctionPointerForDelegate(newValue));
}
-#if RELASE
[SuppressUnmanagedCodeSecurity]
-#endif
[DllImport("user32.dll", SetLastError = true)]
static extern LONG SetWindowLong(HWND hWnd, GetWindowLongOffsets nIndex, LONG dwNewLong);
-#if RELASE
[SuppressUnmanagedCodeSecurity]
-#endif
[DllImport("user32.dll", SetLastError = true)]
static extern LONG_PTR SetWindowLongPtr(HWND hWnd, GetWindowLongOffsets nIndex, LONG_PTR dwNewLong);
-#if RELASE
[SuppressUnmanagedCodeSecurity]
-#endif
[DllImport("user32.dll", SetLastError = true)]
static extern LONG SetWindowLong(HWND hWnd, GetWindowLongOffsets nIndex,
[MarshalAs(UnmanagedType.FunctionPtr)]WindowProcedure dwNewLong);
-#if RELASE
[SuppressUnmanagedCodeSecurity]
-#endif
[DllImport("user32.dll", SetLastError = true)]
static extern LONG_PTR SetWindowLongPtr(HWND hWnd, GetWindowLongOffsets nIndex,
[MarshalAs(UnmanagedType.FunctionPtr)]WindowProcedure dwNewLong);
@@ -407,19 +397,15 @@ LPARAM lParam
#region DispatchMessage
-#if RELEASE
- [System.Security.SuppressUnmanagedCodeSecurity]
-#endif
+ [SuppressUnmanagedCodeSecurity]
[DllImport("User32.dll"), CLSCompliant(false)]
internal static extern LRESULT DispatchMessage(ref MSG msg);
#endregion
#region TranslateMessage
-#if RELEASE
- [System.Security.SuppressUnmanagedCodeSecurity]
-#endif
+ [SuppressUnmanagedCodeSecurity]
[DllImport("User32.dll"), CLSCompliant(false)]
internal static extern BOOL TranslateMessage(ref MSG lpMsg);
@@ -3752,7 +3738,7 @@ internal enum QueueStatusFlags
#region WindowMessage
- internal enum WindowMessage : uint
+ internal enum WindowMessage : int
{
NULL = 0x0000,
CREATE = 0x0001,

0 comments on commit 51baed7

Please sign in to comment.