diff --git a/src/appspawn_adapter.c b/src/appspawn_adapter.c index 9c56c0a303ec5a49139dd6e5a222e80b27768331..4b1de42e2655f018055d60e4504abf9937ec124b 100755 --- a/src/appspawn_adapter.c +++ b/src/appspawn_adapter.c @@ -16,12 +16,6 @@ #include #include -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cpluscplus */ -#endif /* __cpluscplus */ - int KeepCapability() { #ifdef __LINUX__ @@ -32,9 +26,3 @@ int KeepCapability() #endif return 0; } - -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cpluscplus */ -#endif /* __cpluscplus */ diff --git a/src/appspawn_message.c b/src/appspawn_message.c index d06c980370dfe93f69ec5a9c21cb1c5640a2dd27..fe2b5ca22ec19a3ebf3f57935570a1a05c0b1e27 100755 --- a/src/appspawn_message.c +++ b/src/appspawn_message.c @@ -22,12 +22,6 @@ #include "ohos_errno.h" #include "securec.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cpluscplus */ -#endif /* __cpluscplus */ - static const size_t MAX_BUNDLE_NAME_LEN = 127; static const size_t MIN_BUNDLE_NAME_LEN = 7; static const size_t MAX_SHARED_LIB_PATH_LEN = 2048; @@ -144,10 +138,4 @@ int SplitMessage(const char* msg, unsigned int msgLen, MessageSt* msgSt) return EC_PROTOCOL; } return EC_SUCCESS; -} - -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cpluscplus */ -#endif /* __cpluscplus */ +} \ No newline at end of file diff --git a/src/appspawn_process.c b/src/appspawn_process.c index 31f0312c1467ea409b3976149513ec44d986364a..a8c9377661b5986c29519e5a479afa7ec1c6c30b 100755 --- a/src/appspawn_process.c +++ b/src/appspawn_process.c @@ -23,12 +23,6 @@ #include "log.h" #include "securec.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cpluscplus */ -#endif /* __cpluscplus */ - #define DEFAULT_UMASK 022 #define CAP_NUM 2 #define ABILITY_EXE_FILE_FULL_PATH "/bin/abilityMain" @@ -174,10 +168,4 @@ pid_t CreateProcess(const MessageSt* msgSt) free(envStr); return newPID; -} - -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cpluscplus */ -#endif /* __cpluscplus */ +} \ No newline at end of file diff --git a/src/appspawn_service.c b/src/appspawn_service.c index 3415d9ab2489b70764ffdd9e94bcf9bd25dc335a..eabc3ea2cac3dd11c0be60ca118972609b268ffb 100755 --- a/src/appspawn_service.c +++ b/src/appspawn_service.c @@ -26,12 +26,6 @@ #include "samgr_lite.h" #include "service.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cpluscplus */ -#endif /* __cpluscplus */ - static const int INVALID_PID = -1; typedef struct AppSpawnFeatureApi { @@ -159,10 +153,4 @@ void AppSpawnInit(void) HILOG_INFO(HILOG_MODULE_HIVIEW, "[appspawn] register featureapi succeed."); } -SYSEX_SERVICE_INIT(AppSpawnInit); - -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cpluscplus */ -#endif /* __cpluscplus */ +SYSEX_SERVICE_INIT(AppSpawnInit); \ No newline at end of file