[Mesa-dev] [PATCH 11/18] intel/common: consistently use ifndef guards over pragma once

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


Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/intel/common/gen_debug.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/intel/common/gen_debug.h b/src/intel/common/gen_debug.h
index d007aebf69d..a8ac2619c8c 100644
--- a/src/intel/common/gen_debug.h
+++ b/src/intel/common/gen_debug.h
@@ -22,7 +22,9 @@
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
-#pragma once
+
+#ifndef GEN_DEBUG_H
+#define GEN_DEBUG_H
 
 #include <stdint.h>
 #include "compiler/shader_enums.h"
@@ -132,3 +134,5 @@ extern void brw_process_intel_debug_variable(void);
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* GEN_DEBUG_H */
-- 
2.11.1



More information about the mesa-dev mailing list