mirror of
https://github.com/Tencent/MMKV.git
synced 2026-10-28 19:37:13 +08:00
@@ -20,6 +20,7 @@
|
||||
|
||||
#ifndef MMKV_CODEDINPUTDATA_H
|
||||
#define MMKV_CODEDINPUTDATA_H
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "MMKVPredef.h"
|
||||
|
||||
@@ -75,4 +76,5 @@ public:
|
||||
|
||||
} // namespace mmkv
|
||||
|
||||
#endif
|
||||
#endif //MMKV_CODEDINPUTDATA_H
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#ifndef MMKV_CODEDOUTPUTDATA_H
|
||||
#define MMKV_CODEDOUTPUTDATA_H
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "MMKVPredef.h"
|
||||
|
||||
@@ -80,4 +81,5 @@ public:
|
||||
|
||||
} // namespace mmkv
|
||||
|
||||
#endif
|
||||
#endif //MMKV_CODEDOUTPUTDATA_H
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#ifndef MMKV_INTERPROCESSLOCK_H
|
||||
#define MMKV_INTERPROCESSLOCK_H
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "MMKVPredef.h"
|
||||
|
||||
@@ -114,4 +115,5 @@ public:
|
||||
|
||||
} // namespace mmkv
|
||||
|
||||
#endif
|
||||
#endif //MMKV_INTERPROCESSLOCK_H
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#ifndef MMKV_MMKVMETAINFO_H
|
||||
#define MMKV_MMKVMETAINFO_H
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "aes/AESCrypt.h"
|
||||
#include <cstdint>
|
||||
@@ -76,4 +77,5 @@ static_assert(sizeof(MMKVMetaInfo) <= (4 * 1024), "MMKVMetaInfo lager than one p
|
||||
|
||||
} // namespace mmkv
|
||||
|
||||
#endif
|
||||
#endif //MMKV_MMKVMETAINFO_H
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#ifndef MMKV_MAMERYFILE_H
|
||||
#define MMKV_MAMERYFILE_H
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "MMKVPredef.h"
|
||||
|
||||
@@ -103,4 +104,5 @@ extern bool zeroFillFile(MMKVFileHandle_t fd, size_t startPos, size_t size);
|
||||
extern size_t getPageSize();
|
||||
} // namespace mmkv
|
||||
|
||||
#endif
|
||||
#endif //MMKV_MAMERYFILE_H
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#ifndef MMKV_MINIPBCODER_H
|
||||
#define MMKV_MINIPBCODER_H
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "MMKVPredef.h"
|
||||
|
||||
@@ -113,4 +114,5 @@ public:
|
||||
|
||||
} // namespace mmkv
|
||||
|
||||
#endif
|
||||
#endif //MMKV_MINIPBCODER_H
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#ifndef MMKV_PBENCODEITEM_HPP
|
||||
#define MMKV_PBENCODEITEM_HPP
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "MMKVPredef.h"
|
||||
|
||||
@@ -114,4 +115,5 @@ struct PBEncodeItem {
|
||||
|
||||
} // namespace mmkv
|
||||
|
||||
#endif
|
||||
#endif //MMKV_PBENCODEITEM_HPP
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#ifndef AES_CRYPT_H_
|
||||
#define AES_CRYPT_H_
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
@@ -71,4 +72,5 @@ void testAESCrypt();
|
||||
|
||||
} // namespace mmkv
|
||||
|
||||
#endif
|
||||
#endif /* AES_CRYPT_H_ */
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#ifndef HEADER_AES_H
|
||||
# define HEADER_AES_H
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "openssl_opensslconf.h"
|
||||
#include "openssl_arm_arch.h"
|
||||
@@ -101,3 +102,4 @@ void AES_encrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key
|
||||
#endif // __ARM_MAX_ARCH__ > 0
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#ifndef HEADER_AES_LOCL_H
|
||||
# define HEADER_AES_LOCL_H
|
||||
#ifdef __cplusplus
|
||||
|
||||
# include "openssl_opensslconf.h"
|
||||
# include <stdio.h>
|
||||
@@ -33,4 +34,5 @@ typedef unsigned int u32;
|
||||
typedef unsigned short u16;
|
||||
typedef unsigned char u8;
|
||||
|
||||
#endif
|
||||
#endif /* !HEADER_AES_LOCL_H */
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -70,3 +71,5 @@ void md5_block_data_order(MD5_CTX *c, const void *p, size_t num);
|
||||
a+=b; };
|
||||
|
||||
} // namespace openssl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "../MMKVPredef.h"
|
||||
|
||||
#if MMKV_EMBED_ZLIB
|
||||
@@ -61,3 +63,5 @@ extern CRC32_Func_t CRC32;
|
||||
# endif // __aarch64__
|
||||
|
||||
#endif // MMKV_EMBED_ZLIB
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user