The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc: Protect ipc_generated_protocol.h with cpp header guard

+6 -1
+6 -1
src/xrt/ipc/shared/proto.py
··· 141 141 f.write(''' 142 142 #pragma once 143 143 144 + #include "xrt/xrt_compiler.h" 144 145 146 + ''') 147 + 148 + write_cpp_header_guard_start(f) 149 + f.write(''' 145 150 146 151 struct ipc_connection; 147 152 ''') ··· 203 208 204 209 f.write("#pragma pack (pop)\n") 205 210 211 + write_cpp_header_guard_end(f) 206 212 f.close() 207 213 208 214 ··· 256 262 f.write(";\n") 257 263 258 264 write_cpp_header_guard_end(f) 259 - 260 265 f.close() 261 266 262 267