From 015d0543d28fed486e9773851579249d6725c3ee Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Mon, 9 Jan 2012 13:57:04 +0100 Subject: [PATCH] ndk: : formatting + updates This patch improves the formatting of as exposed by the NDK: - change '#if __cplusplus' into '#ifdef __cplusplus' - change C++-style comment into C-style comment Change-Id: Ib093058e8d7a7554d8329a40e102cde11d065932 --- ndk/platforms/android-3/include/pthread.h | 6 +++--- ndk/platforms/android-5/include/pthread.h | 6 +++--- ndk/platforms/android-8/include/pthread.h | 6 +++--- ndk/platforms/android-9/include/pthread.h | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ndk/platforms/android-3/include/pthread.h b/ndk/platforms/android-3/include/pthread.h index e3afdaede..2a6029d64 100644 --- a/ndk/platforms/android-3/include/pthread.h +++ b/ndk/platforms/android-3/include/pthread.h @@ -103,7 +103,7 @@ typedef volatile int pthread_once_t; /* * Prototypes */ -#if __cplusplus +#ifdef __cplusplus extern "C" { #endif @@ -231,7 +231,7 @@ extern void __pthread_cleanup_pop(__pthread_cleanup_t* c, __pthread_cleanup_pop( &__cleanup, (execute)); \ } while (0); -#if __cplusplus +#ifdef __cplusplus } /* extern "C" */ #endif @@ -240,4 +240,4 @@ extern void __pthread_cleanup_pop(__pthread_cleanup_t* c, #define LONG_LONG_MAX __LONG_LONG_MAX__ #define LONG_LONG_MIN (-__LONG_LONG_MAX__ - 1) -#endif // _PTHREAD_H_ +#endif /* _PTHREAD_H_ */ diff --git a/ndk/platforms/android-5/include/pthread.h b/ndk/platforms/android-5/include/pthread.h index 6603b3f6c..a20a52de1 100644 --- a/ndk/platforms/android-5/include/pthread.h +++ b/ndk/platforms/android-5/include/pthread.h @@ -103,7 +103,7 @@ typedef volatile int pthread_once_t; /* * Prototypes */ -#if __cplusplus +#ifdef __cplusplus extern "C" { #endif @@ -258,7 +258,7 @@ extern void __pthread_cleanup_pop(__pthread_cleanup_t* c, __pthread_cleanup_pop( &__cleanup, (execute)); \ } while (0); -#if __cplusplus +#ifdef __cplusplus } /* extern "C" */ #endif @@ -267,4 +267,4 @@ extern void __pthread_cleanup_pop(__pthread_cleanup_t* c, #define LONG_LONG_MAX __LONG_LONG_MAX__ #define LONG_LONG_MIN (-__LONG_LONG_MAX__ - 1) -#endif // _PTHREAD_H_ +#endif /* _PTHREAD_H_ */ diff --git a/ndk/platforms/android-8/include/pthread.h b/ndk/platforms/android-8/include/pthread.h index eb2d16997..f7a596acb 100644 --- a/ndk/platforms/android-8/include/pthread.h +++ b/ndk/platforms/android-8/include/pthread.h @@ -103,7 +103,7 @@ typedef volatile int pthread_once_t; /* * Prototypes */ -#if __cplusplus +#ifdef __cplusplus extern "C" { #endif @@ -263,7 +263,7 @@ extern void __pthread_cleanup_pop(__pthread_cleanup_t* c, __pthread_cleanup_pop( &__cleanup, (execute)); \ } while (0); -#if __cplusplus +#ifdef __cplusplus } /* extern "C" */ #endif @@ -272,4 +272,4 @@ extern void __pthread_cleanup_pop(__pthread_cleanup_t* c, #define LONG_LONG_MAX __LONG_LONG_MAX__ #define LONG_LONG_MIN (-__LONG_LONG_MAX__ - 1) -#endif // _PTHREAD_H_ +#endif /* _PTHREAD_H_ */ diff --git a/ndk/platforms/android-9/include/pthread.h b/ndk/platforms/android-9/include/pthread.h index 5e870430a..4baf82f75 100644 --- a/ndk/platforms/android-9/include/pthread.h +++ b/ndk/platforms/android-9/include/pthread.h @@ -103,7 +103,7 @@ typedef volatile int pthread_once_t; /* * Prototypes */ -#if __cplusplus +#ifdef __cplusplus extern "C" { #endif @@ -302,7 +302,7 @@ extern void __pthread_cleanup_pop(__pthread_cleanup_t* c, __pthread_cleanup_pop( &__cleanup, (execute)); \ } while (0); -#if __cplusplus +#ifdef __cplusplus } /* extern "C" */ #endif @@ -311,4 +311,4 @@ extern void __pthread_cleanup_pop(__pthread_cleanup_t* c, #define LONG_LONG_MAX __LONG_LONG_MAX__ #define LONG_LONG_MIN (-__LONG_LONG_MAX__ - 1) -#endif // _PTHREAD_H_ +#endif /* _PTHREAD_H_ */