Displaying 5 results from an estimated 5 matches for "_via_drm_h_".
2016 Apr 21
0
[PATCH 22/24] drm/via: add extern C guard for the UAPI header
.../* WARNING: These defines must be the same as what the Xserver uses.
* if you change them, you must change the defines in the Xserver.
*/
@@ -271,4 +275,8 @@ typedef struct drm_via_dmablit {
drm_via_blitsync_t sync;
} drm_via_dmablit_t;
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* _VIA_DRM_H_ */
--
2.6.2
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...git a/include/uapi/drm/via_drm.h b/include/uapi/drm/via_drm.h
index 8b0533c..c070906 100644
--- a/include/uapi/drm/via_drm.h
+++ b/include/uapi/drm/via_drm.h
@@ -21,8 +21,8 @@
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
-#ifndef _VIA_DRM_H_
-#define _VIA_DRM_H_
+#ifndef _UAPI_DRM_VIA_DRM_H
+#define _UAPI_DRM_VIA_DRM_H
#include <drm/drm.h>
@@ -278,4 +278,4 @@ struct via_file_private {
struct list_head obj_list;
};
-#endif /* _VIA_DRM_H_ */
+#endif /* _UAPI_DRM_VIA_DRM_H */
diff --git a/include/uapi/drm/vmwgfx_drm.h b...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...git a/include/uapi/drm/via_drm.h b/include/uapi/drm/via_drm.h
index 8b0533c..c070906 100644
--- a/include/uapi/drm/via_drm.h
+++ b/include/uapi/drm/via_drm.h
@@ -21,8 +21,8 @@
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
-#ifndef _VIA_DRM_H_
-#define _VIA_DRM_H_
+#ifndef _UAPI_DRM_VIA_DRM_H
+#define _UAPI_DRM_VIA_DRM_H
#include <drm/drm.h>
@@ -278,4 +278,4 @@ struct via_file_private {
struct list_head obj_list;
};
-#endif /* _VIA_DRM_H_ */
+#endif /* _UAPI_DRM_VIA_DRM_H */
diff --git a/include/uapi/drm/vmwgfx_drm.h b...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...git a/include/uapi/drm/via_drm.h b/include/uapi/drm/via_drm.h
index 8b0533c..c070906 100644
--- a/include/uapi/drm/via_drm.h
+++ b/include/uapi/drm/via_drm.h
@@ -21,8 +21,8 @@
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
-#ifndef _VIA_DRM_H_
-#define _VIA_DRM_H_
+#ifndef _UAPI_DRM_VIA_DRM_H
+#define _UAPI_DRM_VIA_DRM_H
#include <drm/drm.h>
@@ -278,4 +278,4 @@ struct via_file_private {
struct list_head obj_list;
};
-#endif /* _VIA_DRM_H_ */
+#endif /* _UAPI_DRM_VIA_DRM_H */
diff --git a/include/uapi/drm/vmwgfx_drm.h b...
2016 Apr 21
25
[PATCH 00/24] drm: add extern C guard for the UAPI headers
Hi all,
As some of you may know there some subtle distinction between C and C++
structs, thus one should wrap/annotate them roughly like below.
...
#if defined(__cplusplus)
extern "C" {
#endif
struct foo {
int bar;
...
};
...
#if defined(__cplusplus)
}
#endif
In order to work around the lack of these users can wrap the header
inclusion in the same way. For example: