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