Mesa (master): radv: consistently use ifndef guards over pragma once

Emil Velikov evelikov at kemper.freedesktop.org
Wed Mar 22 16:59:31 UTC 2017


Module: Mesa
Branch: master
Commit: b9d035e75bfa8c0f9ba8bce196185112d6398036
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9d035e75bfa8c0f9ba8bce196185112d6398036

Author: Emil Velikov <emil.l.velikov at gmail.com>
Date:   Mon Mar 20 16:04:05 2017 +0000

radv: consistently use ifndef guards over pragma once

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>
Acked-by: Vedran Miletić <vedran at miletic.net>
Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>

---

 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 bee8e7d9ee..13ac179346 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 */




More information about the mesa-commit mailing list