Mesa (master): mesa/main: consistently use ifndef guards over pragma once
Emil Velikov
evelikov at kemper.freedesktop.org
Wed Mar 22 16:59:32 UTC 2017
Module: Mesa
Branch: master
Commit: f66fe28d9f88f4935461b6cfb5a8386ca36a08b1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f66fe28d9f88f4935461b6cfb5a8386ca36a08b1
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Mon Mar 20 16:04:38 2017 +0000
mesa/main: consistently use ifndef guards over pragma once
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/mesa/main/formatquery.h | 1 -
src/mesa/main/performance_monitor.h | 1 -
src/mesa/main/performance_query.h | 1 -
src/mesa/main/sse_minmax.h | 5 +++++
src/mesa/main/streaming-load-memcpy.h | 6 ++++++
5 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/mesa/main/formatquery.h b/src/mesa/main/formatquery.h
index 1061fd2675..66dcf736dc 100644
--- a/src/mesa/main/formatquery.h
+++ b/src/mesa/main/formatquery.h
@@ -21,7 +21,6 @@
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef FORMATQUERY_H
#define FORMATQUERY_H
diff --git a/src/mesa/main/performance_monitor.h b/src/mesa/main/performance_monitor.h
index 88de14546d..2ba703276b 100644
--- a/src/mesa/main/performance_monitor.h
+++ b/src/mesa/main/performance_monitor.h
@@ -27,7 +27,6 @@
* INTEL_performance_query extension.
*/
-#pragma once
#ifndef PERFORMANCE_MONITOR_H
#define PERFORMANCE_MONITOR_H
diff --git a/src/mesa/main/performance_query.h b/src/mesa/main/performance_query.h
index 8268f0ef19..784866402b 100644
--- a/src/mesa/main/performance_query.h
+++ b/src/mesa/main/performance_query.h
@@ -26,7 +26,6 @@
* Core Mesa support for the INTEL_performance_query extension
*/
-#pragma once
#ifndef PERFORMANCE_QUERY_H
#define PERFORMANCE_QUERY_H
diff --git a/src/mesa/main/sse_minmax.h b/src/mesa/main/sse_minmax.h
index 953c4e9eb4..f23a42481d 100644
--- a/src/mesa/main/sse_minmax.h
+++ b/src/mesa/main/sse_minmax.h
@@ -25,6 +25,11 @@
*
*/
+#ifndef SSE_MINMAX_H
+#define SSE_MINMAX_H
+
void
_mesa_uint_array_min_max(const unsigned *ui_indices, unsigned *min_index,
unsigned *max_index, const unsigned count);
+
+#endif /* SSE_MINMAX_H */
diff --git a/src/mesa/main/streaming-load-memcpy.h b/src/mesa/main/streaming-load-memcpy.h
index 41eeeeca0f..d31c199a27 100644
--- a/src/mesa/main/streaming-load-memcpy.h
+++ b/src/mesa/main/streaming-load-memcpy.h
@@ -29,5 +29,11 @@
/* Copies memory from src to dst, using SSE 4.1's MOVNTDQA to get streaming
* read performance from uncached memory.
*/
+
+#ifndef STREAMING_LOAD_MEMCPY_H
+#define STREAMING_LOAD_MEMCPY_H
+
void
_mesa_streaming_load_memcpy(void *restrict dst, void *restrict src, size_t len);
+
+#endif /* STREAMING_LOAD_MEMCPY_H */
More information about the mesa-commit
mailing list