Skip to content

Commit d1c7266

Browse files
committed
Fix warnings in windows.pxd
1 parent b34600d commit d1c7266

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/extern/windows.pxd

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ cdef extern from "Windows.h" nogil:
2323
ctypedef HICON HCURSOR
2424

2525
ctypedef unsigned int UINT
26+
ctypedef unsigned int UINT_PTR
27+
2628
# noinspection PyUnresolvedReferences
2729
ctypedef wchar_t* LPCTSTR
2830
# noinspection PyUnresolvedReferences
@@ -49,7 +51,11 @@ cdef extern from "Windows.h" nogil:
4951
cdef size_t mbstowcs(wchar_t *wcstr, const_char *mbstr, size_t count)
5052

5153
ctypedef void* HDWP
54+
5255
cdef int SWP_NOZORDER
56+
cdef int SWP_NOACTIVATE
57+
cdef int SWP_FRAMECHANGED
58+
5359
cdef HDWP BeginDeferWindowPos(int nNumWindows)
5460
cdef HDWP DeferWindowPos(
5561
HDWP hWinPosInfo, HWND hWnd, HWND hWndInsertAfter,
@@ -64,8 +70,6 @@ cdef extern from "Windows.h" nogil:
6470
cdef BOOL PostMessage(
6571
HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
6672

67-
ctypedef unsigned int UINT_PTR
68-
ctypedef unsigned int UINT
6973
ctypedef struct TIMERPROC:
7074
pass
7175
cdef UINT_PTR SetTimer(
@@ -108,9 +112,6 @@ cdef extern from "Windows.h" nogil:
108112
cdef BOOL SetWindowPos(
109113
HWND hWnd, HWND hWndInsertAfter,
110114
int X, int Y, int cx, int cy, UINT uFlags)
111-
cdef int SWP_NOZORDER
112-
cdef int SWP_NOACTIVATE
113-
cdef int SWP_FRAMECHANGED
114115

115116
cdef DWORD GetLastError()
116117
cdef BOOL IsWindow(HWND hWnd)

0 commit comments

Comments
 (0)