Skip to content

Commit ac83d72

Browse files
authored
Update MinGW.md
Additional suggestions from #796
1 parent bb7cd06 commit ac83d72

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Documentation/LanguageServer/MinGW.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ For developers using MinGW on Windows, we recommend you start with the following
1818
"defines": [
1919
"_DEBUG",
2020
"UNICODE",
21-
"__GNUC__"
21+
"__GNUC__=5",
22+
"__cdecl=__attribute__((__cdecl__))"
2223
],
2324
"browse": {
2425
"path": [
@@ -34,7 +35,7 @@ For developers using MinGW on Windows, we recommend you start with the following
3435
}
3536
```
3637

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).
3839

3940
For C projects, simply remove the c++ lines:
4041

@@ -53,7 +54,8 @@ For C projects, simply remove the c++ lines:
5354
"defines": [
5455
"_DEBUG",
5556
"UNICODE",
56-
"__GNUC__"
57+
"__GNUC__=5",
58+
"__cdecl=__attribute__((__cdecl__))"
5759
],
5860
"browse": {
5961
"path": [

0 commit comments

Comments
 (0)