Logo

index : raylib-jai

---

  • summary
  • about
  • tree
  • log
  • branches
<< path: root/public/raylib-jai.git/html/Raylib/raylib/src/external/glfw/deps/mingw/_mingw_dxhelper.h blob: 849e2914649bd09177d5614d01dd3d40bd544904 [raw] [clear marker]

        
0/**
1 * This file has no copyright assigned and is placed in the Public Domain.
2 * This file is part of the mingw-w64 runtime package.
3 * No warranty is given; refer to the file DISCLAIMER within this package.
4 */
5
6#if defined(_MSC_VER) && !defined(_MSC_EXTENSIONS)
7#define NONAMELESSUNION 1
8#endif
9#if defined(NONAMELESSSTRUCT) && \
10 !defined(NONAMELESSUNION)
11#define NONAMELESSUNION 1
12#endif
13#if defined(NONAMELESSUNION) && \
14 !defined(NONAMELESSSTRUCT)
15#define NONAMELESSSTRUCT 1
16#endif
17#if !defined(__GNU_EXTENSION)
18#if defined(__GNUC__) || defined(__GNUG__)
19#define __GNU_EXTENSION __extension__
20#else
21#define __GNU_EXTENSION
22#endif
23#endif /* __extension__ */
24
25#ifndef __ANONYMOUS_DEFINED
26#define __ANONYMOUS_DEFINED
27#if defined(__GNUC__) || defined(__GNUG__)
28#define _ANONYMOUS_UNION __extension__
29#define _ANONYMOUS_STRUCT __extension__
30#else
31#define _ANONYMOUS_UNION
32#define _ANONYMOUS_STRUCT
33#endif
34#ifndef NONAMELESSUNION
35#define _UNION_NAME(x)
36#define _STRUCT_NAME(x)
37#else /* NONAMELESSUNION */
38#define _UNION_NAME(x) x
39#define _STRUCT_NAME(x) x
40#endif
41#endif /* __ANONYMOUS_DEFINED */
42
43#ifndef DUMMYUNIONNAME
44# ifdef NONAMELESSUNION
45# define DUMMYUNIONNAME u
46# define DUMMYUNIONNAME1 u1 /* Wine uses this variant */
47# define DUMMYUNIONNAME2 u2
48# define DUMMYUNIONNAME3 u3
49# define DUMMYUNIONNAME4 u4
50# define DUMMYUNIONNAME5 u5
51# define DUMMYUNIONNAME6 u6
52# define DUMMYUNIONNAME7 u7
53# define DUMMYUNIONNAME8 u8
54# define DUMMYUNIONNAME9 u9
55# else /* NONAMELESSUNION */
56# define DUMMYUNIONNAME
57# define DUMMYUNIONNAME1 /* Wine uses this variant */
58# define DUMMYUNIONNAME2
59# define DUMMYUNIONNAME3
60# define DUMMYUNIONNAME4
61# define DUMMYUNIONNAME5
62# define DUMMYUNIONNAME6
63# define DUMMYUNIONNAME7
64# define DUMMYUNIONNAME8
65# define DUMMYUNIONNAME9
66# endif
67#endif /* DUMMYUNIONNAME */
68
69#if !defined(DUMMYUNIONNAME1) /* MinGW does not define this one */
70# ifdef NONAMELESSUNION
71# define DUMMYUNIONNAME1 u1 /* Wine uses this variant */
72# else
73# define DUMMYUNIONNAME1 /* Wine uses this variant */
74# endif
75#endif /* DUMMYUNIONNAME1 */
76
77#ifndef DUMMYSTRUCTNAME
78# ifdef NONAMELESSUNION
79# define DUMMYSTRUCTNAME s
80# define DUMMYSTRUCTNAME1 s1 /* Wine uses this variant */
81# define DUMMYSTRUCTNAME2 s2
82# define DUMMYSTRUCTNAME3 s3
83# define DUMMYSTRUCTNAME4 s4
84# define DUMMYSTRUCTNAME5 s5
85# else
86# define DUMMYSTRUCTNAME
87# define DUMMYSTRUCTNAME1 /* Wine uses this variant */
88# define DUMMYSTRUCTNAME2
89# define DUMMYSTRUCTNAME3
90# define DUMMYSTRUCTNAME4
91# define DUMMYSTRUCTNAME5
92# endif
93#endif /* DUMMYSTRUCTNAME */
94
95/* These are for compatibility with the Wine source tree */
96
97#ifndef WINELIB_NAME_AW
98# ifdef __MINGW_NAME_AW
99# define WINELIB_NAME_AW __MINGW_NAME_AW
100# else
101# ifdef UNICODE
102# define WINELIB_NAME_AW(func) func##W
103# else
104# define WINELIB_NAME_AW(func) func##A
105# endif
106# endif
107#endif /* WINELIB_NAME_AW */
108
109#ifndef DECL_WINELIB_TYPE_AW
110# ifdef __MINGW_TYPEDEF_AW
111# define DECL_WINELIB_TYPE_AW __MINGW_TYPEDEF_AW
112# else
113# define DECL_WINELIB_TYPE_AW(type) typedef WINELIB_NAME_AW(type) type;
114# endif
115#endif /* DECL_WINELIB_TYPE_AW */
116
117
Copyright 2026  E766CB298A6D1E64 | Git-Thing heavily inspired by cgit