]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/minifb/fix-build-error.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / minifb / fix-build-error.patch
1 diff --git a/src/windows/WinMiniFB.c b/src/windows/WinMiniFB.c
2 index 84ed0cb..b33f252 100644
3 --- a/src/windows/WinMiniFB.c
4 +++ b/src/windows/WinMiniFB.c
5 @@ -19,7 +19,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
6 {
7 LRESULT res = 0;
8
9 - SWindowData *window_data = (SWindowData *) GetWindowLongPtr(hWnd, GWL_USERDATA);
10 + SWindowData *window_data = (SWindowData *) GetWindowLongPtr(hWnd, GWLP_USERDATA);
11 SWindowData_Win *window_data_win = 0x0;
12 if(window_data != 0x0) {
13 window_data_win = (SWindowData_Win *) window_data->specific;
14 diff --git a/tests/multiple_windows.c b/tests/multiple_windows.c
15 index 4b301c0..29276be 100644
16 --- a/tests/multiple_windows.c
17 +++ b/tests/multiple_windows.c
18 @@ -1,6 +1,7 @@
19 #include <MiniFB.h>
20 #include <stdio.h>
21 #include <stdint.h>
22 +#define _USE_MATH_DEFINES
23 #include <math.h>
24
25 #define kUnused(var) (void) var;