From fee77ec093f78c1bb0ce85aa16d7ee8e8fa06f8a Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 21 May 2009 13:08:39 -0700 Subject: [PATCH] don't use cdefs.h as it breaks the windows build. --- include/cutils/native_handle.h | 10 ++++++---- 1 file 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 - -__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_ */