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>main
parent
c8df9e724e
commit
1c205749fe
|
@ -29,7 +29,7 @@
|
|||
#ifndef _LIBKMS_H_
|
||||
#define _LIBKMS_H_
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
@ -75,7 +75,7 @@ int kms_bo_map(struct kms_bo *bo, void **out);
|
|||
int kms_bo_unmap(struct kms_bo *bo);
|
||||
int kms_bo_destroy(struct kms_bo **bo);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
#if defined(__cplusplus)
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#ifndef _XF86DRMMODE_H_
|
||||
#define _XF86DRMMODE_H_
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
@ -508,7 +508,7 @@ extern int drmModeCreatePropertyBlob(int fd, const void *data, size_t size,
|
|||
extern int drmModeDestroyPropertyBlob(int fd, uint32_t id);
|
||||
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue