summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-05-21 13:08:39 -0700
committerMathias Agopian <mathias@google.com>2009-05-21 13:08:39 -0700
commitfee77ec093f78c1bb0ce85aa16d7ee8e8fa06f8a (patch)
tree169730b70c9e1f1728ff4f6f06410f0d5e8a02ec /include
parenta09fbd164d2e088bc5433d310e25640ae048d47d (diff)
downloadsystem_core-fee77ec093f78c1bb0ce85aa16d7ee8e8fa06f8a.zip
system_core-fee77ec093f78c1bb0ce85aa16d7ee8e8fa06f8a.tar.gz
system_core-fee77ec093f78c1bb0ce85aa16d7ee8e8fa06f8a.tar.bz2
don't use cdefs.h as it breaks the windows build.
Diffstat (limited to 'include')
-rw-r--r--include/cutils/native_handle.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/cutils/native_handle.h b/include/cutils/native_handle.h
index 8a44b72..89d6b65 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_ */