[Mesa-dev] [PATCH 01/13] radv: remove unneeded extern C notation

Emil Velikov emil.l.velikov at gmail.com
Thu Feb 16 15:16:31 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Header is never #include(d) by a C++ source.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/amd/vulkan/vk_format.h | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/amd/vulkan/vk_format.h b/src/amd/vulkan/vk_format.h
index 58ee3f71f0..bee8e7d9ee 100644
--- a/src/amd/vulkan/vk_format.h
+++ b/src/amd/vulkan/vk_format.h
@@ -26,13 +26,10 @@
 
 #pragma once
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <assert.h>
 #include <vulkan/vulkan.h>
 #include <util/macros.h>
+
 enum vk_format_layout {
 	/**
 	 * Formats with vk_format_block::width == vk_format_block::height == 1
@@ -446,6 +443,3 @@ vk_format_get_component_bits(VkFormat format,
 		return 0;
 	}
 }
-#ifdef __cplusplus
-} // extern "C" {
-#endif
-- 
2.11.0



More information about the mesa-dev mailing list