diff options
-rw-r--r-- | include/cutils/native_handle.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/cutils/native_handle.h b/include/cutils/native_handle.h index 8a44b7299..89d6b65e2 100644 --- a/include/cutils/native_handle.h +++ b/include/cutils/native_handle.h @@ -17,9 +17,9 @@ #ifndef NATIVE_HANDLE_H_ #define NATIVE_HANDLE_H_ -#include <sys/cdefs.h> - -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif typedef struct { @@ -66,6 +66,8 @@ native_handle_t* native_handle_create(int numFds, int numInts); int native_handle_delete(native_handle_t* h); -__END_DECLS +#ifdef __cplusplus +} +#endif #endif /* NATIVE_HANDLE_H_ */ |