/* * @file mmpa_api.h * * Copyright (C) Huawei Technologies Co., Ltd. 2019-2021. All Rights Reserved. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ #ifndef _MMPA_API_H_ #define _MMPA_API_H_ #define LINUX 0 #define WIN 1 #if(OS_TYPE == LINUX) //lint !e553 #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #ifdef FUNC_VISIBILITY #define MMPA_FUNC_VISIBILITY __attribute__((visibility("default"))) #else #define MMPA_FUNC_VISIBILITY #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "securec.h" #include "./sub_inc/mmpa_typedef_linux.h" #include "./sub_inc/mmpa_linux.h" #endif #if(OS_TYPE == WIN) //lint !e553 #ifdef FUNC_VISIBILITY #define MMPA_FUNC_VISIBILITY _declspec(dllexport) #else #define MMPA_FUNC_VISIBILITY #endif #include #include #include "Windows.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include "shlwapi.h" #include #include #include #include #include #include #include #include #include "securec.h" #include "sub_inc/mmpa_typedef_win.h" #include "sub_inc/mmpa_win.h" #pragma comment(lib, "ws2_32.lib") #pragma comment(lib, "mswsock.lib") #pragma comment(lib, "Kernel32.lib") #pragma comment(lib, "shlwapi.lib") #pragma comment(lib, "wbemuuid.lib") #pragma comment(lib, "Iphlpapi.lib") #endif #endif // MMPA_API_H_