[Mesa-dev] [PATCH 03/18] radv: consistently use ifndef guards over pragma once

Emil Velikov emil.l.velikov at gmail.com
Mon Mar 20 16:12:53 UTC 2017


Namely: annotate the single file which is not using a ifndef guard -
vk_format.h

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/amd/vulkan/vk_format.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/vk_format.h b/src/amd/vulkan/vk_format.h
index bee8e7d9eed..13ac1793460 100644
--- a/src/amd/vulkan/vk_format.h
+++ b/src/amd/vulkan/vk_format.h
@@ -24,7 +24,8 @@
  * IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef VK_FORMAT_H
+#define VK_FORMAT_H
 
 #include <assert.h>
 #include <vulkan/vulkan.h>
@@ -443,3 +444,5 @@ vk_format_get_component_bits(VkFormat format,
 		return 0;
 	}
 }
+
+#endif /* VK_FORMAT_H */
-- 
2.11.1



More information about the mesa-dev mailing list