From da595d8ca474ad078819f0571d32422d8fb5ff1b Mon Sep 17 00:00:00 2001 From: Max Lv Date: Thu, 8 May 2014 15:33:56 +0800 Subject: [PATCH] fix for gcc --- src/android.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/android.h b/src/android.h index 07529909..297f983f 100644 --- a/src/android.h +++ b/src/android.h @@ -3,7 +3,15 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + jint new_protected_socket(); void free_protected_socket(jint fd); +#ifdef __cplusplus +} +#endif + #endif // _JNI_H