pan/va: Add header guards to valhall_enums.h

Otherwise we can't #include in multiple places.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17091>
This commit is contained in:
Alyssa Rosenzweig 2022-06-16 14:49:41 -04:00 committed by Marge Bot
parent c5a8736552
commit 1b29a99b7b

View file

@ -23,6 +23,9 @@
from valhall import safe_name, enums
print("#ifndef __VALHALL_ENUMS_H_")
print("#define __VALHALL_ENUMS_H_")
for enum in sorted(enums):
print(f"enum va_{safe_name(enum)} {{")
@ -32,3 +35,5 @@ for enum in sorted(enums):
print(f" {key.upper()} = {i},")
print("};\n")
print("#endif")