aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapani Pälli2015-08-07 02:37:56 -0500
committerTapani Pälli2015-08-10 03:25:39 -0500
commit1c205749fe2171aaa69ce053a8f248e329bd72f7 (patch)
treea6973523d92d9be3b5d016a50e65188712e6bcfc
parentc8df9e724e9a2559d551fa93f13afe7084b6af3f (diff)
downloadexternal-libdrm-1c205749fe2171aaa69ce053a8f248e329bd72f7.tar.gz
external-libdrm-1c205749fe2171aaa69ce053a8f248e329bd72f7.tar.xz
external-libdrm-1c205749fe2171aaa69ce053a8f248e329bd72f7.zip
remove usage of 'c_plusplus' preprocessor macro
Use only __cplusplus which is supported by the C++ standard. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--libkms/libkms.h4
-rw-r--r--xf86drm.h4
-rw-r--r--xf86drmMode.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/libkms/libkms.h b/libkms/libkms.h
index c00b1597..930a2bfc 100644
--- a/libkms/libkms.h
+++ b/libkms/libkms.h
@@ -29,7 +29,7 @@
29#ifndef _LIBKMS_H_ 29#ifndef _LIBKMS_H_
30#define _LIBKMS_H_ 30#define _LIBKMS_H_
31 31
32#if defined(__cplusplus) || defined(c_plusplus) 32#if defined(__cplusplus)
33extern "C" { 33extern "C" {
34#endif 34#endif
35 35
@@ -75,7 +75,7 @@ int kms_bo_map(struct kms_bo *bo, void **out);
75int kms_bo_unmap(struct kms_bo *bo); 75int kms_bo_unmap(struct kms_bo *bo);
76int kms_bo_destroy(struct kms_bo **bo); 76int kms_bo_destroy(struct kms_bo **bo);
77 77
78#if defined(__cplusplus) || defined(c_plusplus) 78#if defined(__cplusplus)
79}; 79};
80#endif 80#endif
81 81
diff --git a/xf86drm.h b/xf86drm.h
index e3a19dc0..360e04af 100644
--- a/xf86drm.h
+++ b/xf86drm.h
@@ -39,7 +39,7 @@
39#include <stdint.h> 39#include <stdint.h>
40#include <drm.h> 40#include <drm.h>
41 41
42#if defined(__cplusplus) || defined(c_plusplus) 42#if defined(__cplusplus)
43extern "C" { 43extern "C" {
44#endif 44#endif
45 45
@@ -759,7 +759,7 @@ extern int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle);
759extern char *drmGetPrimaryDeviceNameFromFd(int fd); 759extern char *drmGetPrimaryDeviceNameFromFd(int fd);
760extern char *drmGetRenderDeviceNameFromFd(int fd); 760extern char *drmGetRenderDeviceNameFromFd(int fd);
761 761
762#if defined(__cplusplus) || defined(c_plusplus) 762#if defined(__cplusplus)
763} 763}
764#endif 764#endif
765 765
diff --git a/xf86drmMode.h b/xf86drmMode.h
index 1c10023c..4de7bbbe 100644
--- a/xf86drmMode.h
+++ b/xf86drmMode.h
@@ -36,7 +36,7 @@
36#ifndef _XF86DRMMODE_H_ 36#ifndef _XF86DRMMODE_H_
37#define _XF86DRMMODE_H_ 37#define _XF86DRMMODE_H_
38 38
39#if defined(__cplusplus) || defined(c_plusplus) 39#if defined(__cplusplus)
40extern "C" { 40extern "C" {
41#endif 41#endif
42 42
@@ -508,7 +508,7 @@ extern int drmModeCreatePropertyBlob(int fd, const void *data, size_t size,
508extern int drmModeDestroyPropertyBlob(int fd, uint32_t id); 508extern int drmModeDestroyPropertyBlob(int fd, uint32_t id);
509 509
510 510
511#if defined(__cplusplus) || defined(c_plusplus) 511#if defined(__cplusplus)
512} 512}
513#endif 513#endif
514 514