[Mesa-dev] [PATCH 09/18] st/wgl: consistently use ifndef guards over pragma once

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


Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/gallium/state_trackers/wgl/stw_ext_context.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/wgl/stw_ext_context.h b/src/gallium/state_trackers/wgl/stw_ext_context.h
index 9cb12b498bd..d0337490436 100644
--- a/src/gallium/state_trackers/wgl/stw_ext_context.h
+++ b/src/gallium/state_trackers/wgl/stw_ext_context.h
@@ -22,7 +22,8 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef STW_EXT_CONTEXT_H
+#define STW_EXT_CONTEXT_H
 
 #include <windows.h>
 #include <GL/gl.h>
@@ -34,3 +35,4 @@ typedef BOOL (WINAPI *wglDeleteContext_t)(HGLRC hglrc);
 extern wglCreateContext_t wglCreateContext_func;
 extern wglDeleteContext_t wglDeleteContext_func;
 
+#endif /* STW_EXT_CONTEXT_H */
-- 
2.11.1



More information about the mesa-dev mailing list