上の枠に
> Edit Configuration
まで入れて、GUI なら「定義」という窓があるので、そこに例えば
LINUX
といれる。
JSON なら defines のかぎかっこの中に例えば
"LINUX"
と入れる。
リモートだとこんな感じで保存される。
$ cat ~/.vscode/c_cpp_properties.json
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"defines": ["LINUX"],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c17",
"cppStandard": "gnu++14",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4