1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

Fixed old macros for x86 compilation

This commit is contained in:
M0N7Y5 2020-10-30 20:58:33 +01:00 committed by GitHub
parent e2bc29cf9c
commit 09dc6fde3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1473,7 +1473,7 @@ namespace System
public static int GetWindowLong(HWnd hWnd, int32 nIndex) public static int GetWindowLong(HWnd hWnd, int32 nIndex)
{ {
#if BF32 #if BF_32_BIT
//if (sizeof(int) == 4) //if (sizeof(int) == 4)
return (int)GetWindowLongA((int)hWnd, nIndex); return (int)GetWindowLongA((int)hWnd, nIndex);
#else #else
@ -1483,7 +1483,7 @@ namespace System
#endif #endif
} }
#if BF32 #if BF_32_BIT
[CLink, CallingConvention(.Stdcall)] [CLink, CallingConvention(.Stdcall)]
public static extern int GetWindowLongA(int hWnd, int nIndex); public static extern int GetWindowLongA(int hWnd, int nIndex);
#else #else
@ -1493,14 +1493,14 @@ namespace System
public static int SetWindowLong(HWnd hWnd, int32 nIndex, int value) public static int SetWindowLong(HWnd hWnd, int32 nIndex, int value)
{ {
#if BF32 #if BF_32_BIT
return (int)SetWindowLongA((int)hWnd, nIndex, value); return (int)SetWindowLongA((int)hWnd, nIndex, value);
#else #else
return SetWindowLongPtrW((int)hWnd, nIndex, value); return SetWindowLongPtrW((int)hWnd, nIndex, value);
#endif #endif
} }
#if BF32 #if BF_32_BIT
[CLink, CallingConvention(.Stdcall)] [CLink, CallingConvention(.Stdcall)]
public static extern int SetWindowLongA(int hWnd, int nIndex, int value); public static extern int SetWindowLongA(int hWnd, int nIndex, int value);
#else #else