diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2015-08-07 10:37:56 +0300 |
---|---|---|
committer | Tapani Pälli <tapani.palli@intel.com> | 2015-08-10 11:25:39 +0300 |
commit | 1c205749fe2171aaa69ce053a8f248e329bd72f7 (patch) | |
tree | a6973523d92d9be3b5d016a50e65188712e6bcfc /xf86drm.h | |
parent | c8df9e724e9a2559d551fa93f13afe7084b6af3f (diff) |
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>
Diffstat (limited to 'xf86drm.h')
-rw-r--r-- | xf86drm.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,7 +39,7 @@ #include <stdint.h> #include <drm.h> -#if defined(__cplusplus) || defined(c_plusplus) +#if defined(__cplusplus) extern "C" { #endif @@ -759,7 +759,7 @@ extern int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle); extern char *drmGetPrimaryDeviceNameFromFd(int fd); extern char *drmGetRenderDeviceNameFromFd(int fd); -#if defined(__cplusplus) || defined(c_plusplus) +#if defined(__cplusplus) } #endif |