From a155071981b401f72fa3dad4626c7a891ff8f761 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Sat, 17 Feb 2024 13:58:45 -0500 Subject: fix -std syntax on clang examples --- docs/guide/type.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/guide') diff --git a/docs/guide/type.md b/docs/guide/type.md index ecfafc09..15a77d2a 100644 --- a/docs/guide/type.md +++ b/docs/guide/type.md @@ -295,11 +295,11 @@ From this example, the flags would be: ##### For Windows -For windows, there's no easy command to list all the include paths so you have to piece them together from the `Include Directory` property in a Visual Studio project. You also want to include `-x c -std c99` since Windows headers include lots of C++ types that the type importer currently does not support. +For windows, there's no easy command to list all the include paths so you have to piece them together from the `Include Directory` property in a Visual Studio project. You also want to include `-x c -std=c99` since Windows headers include lots of C++ types that the type importer currently does not support. You will end up with something like the following for user mode: - -x c -std c99 + -x c -std=c99 -isystem"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include" -isystem"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt" -isystem"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared" @@ -307,7 +307,7 @@ You will end up with something like the following for user mode: Or, for kernel mode: - -x c -std c99 + -x c -std=c99 -isystem"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include" -isystem"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt" -isystem"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared" -- cgit v1.3.1