You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/LanguageServer/MinGW.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,8 @@ For developers using MinGW on Windows, we recommend you start with the following
18
18
"defines": [
19
19
"_DEBUG",
20
20
"UNICODE",
21
-
"__GNUC__"
21
+
"__GNUC__=5",
22
+
"__cdecl=__attribute__((__cdecl__))"
22
23
],
23
24
"browse": {
24
25
"path": [
@@ -34,7 +35,7 @@ For developers using MinGW on Windows, we recommend you start with the following
34
35
}
35
36
```
36
37
37
-
The `includePath` above includes the system header paths that gcc uses in version 5.3.0 for C++ projects and matches the output of `gcc -v -E -x c++ -`. The `intelliSenseMode` should be set to **"clang-x64"** to get MinGW projects to work properly with IntelliSense.
38
+
The `includePath` above includes the system header paths that gcc uses in version 5.3.0 for C++ projects and matches the output of `gcc -v -E -x c++ -`. The `intelliSenseMode` should be set to **"clang-x64"** to get MinGW projects to work properly with IntelliSense. The `__GNUC__=#` define should match the major version of the toolchain in your installation (5 in this example).
38
39
39
40
For C projects, simply remove the c++ lines:
40
41
@@ -53,7 +54,8 @@ For C projects, simply remove the c++ lines:
0 commit comments