Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / external / epoxy / epoxy.windows.api.patch
blob12d2afb6a6ad94230ad92fb307b40046016209ca
1 --- include/epoxy/gl.h
2 +++ include/epoxy/gl.h
3 @@ -59,7 +59,8 @@
5 #else
6 #ifndef APIENTRY
7 -#define APIENTRY __stdcall
8 +#define WINAPI __stdcall
9 +#define APIENTRY WINAPI
10 #endif
12 #ifndef GLAPIENTRY
13 --- src/egl_generated_dispatch.c
14 +++ src/egl_generated_dispatch.c
15 @@ -128,7 +128,11 @@
18 #if USING_DISPATCH_TABLE
19 +#if defined (_MSC_VER)
20 +static __inline struct dispatch_table *
21 +#else
22 static inline struct dispatch_table *
23 +#endif
24 get_dispatch_table(void);
26 #endif
27 @@ -1642,7 +1646,11 @@
28 uint32_t egl_tls_index;
29 uint32_t egl_tls_size = sizeof(struct dispatch_table);
31 +#if defined (_MSC_VER)
32 +static __inline struct dispatch_table *
33 +#else
34 static inline struct dispatch_table *
35 +#endif
36 get_dispatch_table(void)
38 return TlsGetValue(egl_tls_index);
39 --- src/gl_generated_dispatch.c
40 +++ src/gl_generated_dispatch.c
41 @@ -3122,7 +3122,11 @@
44 #if USING_DISPATCH_TABLE
45 +#if defined (_MSC_VER)
46 +static __inline struct dispatch_table *
47 +#else
48 static inline struct dispatch_table *
49 +#endif
50 get_dispatch_table(void);
52 #endif
53 @@ -51507,7 +51511,11 @@
54 uint32_t gl_tls_index;
55 uint32_t gl_tls_size = sizeof(struct dispatch_table);
57 +#if defined (_MSC_VER)
58 +static __inline struct dispatch_table *
59 +#else
60 static inline struct dispatch_table *
61 +#endif
62 get_dispatch_table(void)
64 return TlsGetValue(gl_tls_index);
65 --- src/wgl_generated_dispatch.c
66 +++ src/wgl_generated_dispatch.c
67 @@ -157,7 +157,11 @@
70 #if USING_DISPATCH_TABLE
71 +#if defined (_MSC_VER)
72 +static __inline struct dispatch_table *
73 +#else
74 static inline struct dispatch_table *
75 +#endif
76 get_dispatch_table(void);
78 #endif
79 @@ -1701,7 +1705,11 @@
80 uint32_t wgl_tls_index;
81 uint32_t wgl_tls_size = sizeof(struct dispatch_table);
83 +#if defined (_MSC_VER)
84 +static __inline struct dispatch_table *
85 +#else
86 static inline struct dispatch_table *
87 +#endif
88 get_dispatch_table(void)
90 return TlsGetValue(wgl_tls_index);