7 -#define APIENTRY __stdcall
8 +#define WINAPI __stdcall
9 +#define APIENTRY WINAPI
13 --- src/egl_generated_dispatch.c
14 +++ src/egl_generated_dispatch.c
18 #if USING_DISPATCH_TABLE
19 +#if defined (_MSC_VER)
20 +static __inline struct dispatch_table *
22 static inline struct dispatch_table *
24 get_dispatch_table(void);
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 *
34 static inline struct dispatch_table *
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 *
48 static inline struct dispatch_table *
50 get_dispatch_table(void);
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 *
60 static inline struct dispatch_table *
62 get_dispatch_table(void)
64 return TlsGetValue(gl_tls_index);
65 --- src/wgl_generated_dispatch.c
66 +++ src/wgl_generated_dispatch.c
70 #if USING_DISPATCH_TABLE
71 +#if defined (_MSC_VER)
72 +static __inline struct dispatch_table *
74 static inline struct dispatch_table *
76 get_dispatch_table(void);
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 *
86 static inline struct dispatch_table *
88 get_dispatch_table(void)
90 return TlsGetValue(wgl_tls_index);