[Mesa-dev] [PATCH 07/13] d3d1x: Fix include style

Kai Wasserbäch kai at dev.carbon-project.org
Sat Aug 27 08:51:53 PDT 2011


As explained in the thread starting at [0], the internal include style
should be »#include "path/to/header.h"« for non-system includes.

[0]
<http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e>

Signed-off-by: Kai Wasserbäch <kai at dev.carbon-project.org>
---
 .../d3d1x/d3d1xstutil/include/d3d1xstutil.h        |    6 +++---
 .../state_trackers/d3d1x/dxgi/src/dxgi_native.cpp  |    8 ++++----
 .../state_trackers/d3d1x/dxgid3d10/dxgid3d10.cpp   |    4 ++--
 .../state_trackers/d3d1x/dxgid3d11/dxgid3d11.cpp   |    4 ++--
 .../state_trackers/d3d1x/gd3d1x/d3d1x_private.h    |   16 ++++++++--------
 5 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h b/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h
index af355f0..e197c0c 100644
--- a/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h
+++ b/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h
@@ -49,9 +49,9 @@ namespace std
 
 extern "C"
 {
-#include <util/u_atomic.h>
-#include <pipe/p_format.h>
-#include <os/os_thread.h>
+#include "util/u_atomic.h"
+#include "pipe/p_format.h"
+#include "os/os_thread.h"
 }
 
 #include <assert.h>
diff --git a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp
index 0bb9d85..0c80738 100644
--- a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp
+++ b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp
@@ -27,10 +27,10 @@
 #include "dxgi_private.h"
 extern "C" {
 #include "native.h"
-#include <util/u_format.h>
-#include <util/u_inlines.h>
-#include <util/u_simple_shaders.h>
-#include <pipe/p_shader_tokens.h>
+#include "util/u_format.h"
+#include "util/u_inlines.h"
+#include "util/u_simple_shaders.h"
+#include "pipe/p_shader_tokens.h"
 }
 #include <iostream>
 #include <memory>
diff --git a/src/gallium/state_trackers/d3d1x/dxgid3d10/dxgid3d10.cpp b/src/gallium/state_trackers/d3d1x/dxgid3d10/dxgid3d10.cpp
index 96073d4..cdc5df4 100644
--- a/src/gallium/state_trackers/d3d1x/dxgid3d10/dxgid3d10.cpp
+++ b/src/gallium/state_trackers/d3d1x/dxgid3d10/dxgid3d10.cpp
@@ -27,8 +27,8 @@
 #include "d3d1xstutil.h"
 #include "galliumd3d10_1.h"
 #include <dxgi.h>
-#include <pipe/p_screen.h>
-#include <pipe/p_context.h>
+#include "pipe/p_screen.h"
+#include "pipe/p_context.h"
 
 HRESULT D3D10CreateDevice1(
 	IDXGIAdapter *adapter,
diff --git a/src/gallium/state_trackers/d3d1x/dxgid3d11/dxgid3d11.cpp b/src/gallium/state_trackers/d3d1x/dxgid3d11/dxgid3d11.cpp
index 1b1cb90..b93ffb2 100644
--- a/src/gallium/state_trackers/d3d1x/dxgid3d11/dxgid3d11.cpp
+++ b/src/gallium/state_trackers/d3d1x/dxgid3d11/dxgid3d11.cpp
@@ -27,8 +27,8 @@
 #include "d3d1xstutil.h"
 #include "galliumd3d11.h"
 #include <dxgi.h>
-#include <pipe/p_screen.h>
-#include <pipe/p_context.h>
+#include "pipe/p_screen.h"
+#include "pipe/p_context.h"
 
 HRESULT D3D11CreateDevice(
 	IDXGIAdapter *adapter,
diff --git a/src/gallium/state_trackers/d3d1x/gd3d1x/d3d1x_private.h b/src/gallium/state_trackers/d3d1x/gd3d1x/d3d1x_private.h
index 977f0cd..9d5d9c3 100644
--- a/src/gallium/state_trackers/d3d1x/gd3d1x/d3d1x_private.h
+++ b/src/gallium/state_trackers/d3d1x/gd3d1x/d3d1x_private.h
@@ -43,14 +43,14 @@
 
 extern "C"
 {
-#include <pipe/p_defines.h>
-#include <pipe/p_screen.h>
-#include <pipe/p_context.h>
-#include <util/u_inlines.h>
-#include <util/u_format.h>
-#include <util/u_caps.h>
-#include <util/u_debug.h>
-#include <os/os_thread.h>
+#include "pipe/p_defines.h"
+#include "pipe/p_screen.h"
+#include "pipe/p_context.h"
+#include "util/u_inlines.h"
+#include "util/u_format.h"
+#include "util/u_caps.h"
+#include "util/u_debug.h"
+#include "os/os_thread.h"
 }
 
 #include "galliumdxgi.h"
-- 
1.7.5.4



More information about the mesa-dev mailing list