提交 989abc2b 编写于 作者: M Minglei Jin

vnode/cos: move includes into USE_COS

上级 c97b9249
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
#include "vndCos.h" #include "vndCos.h"
#include "cos_api.h"
#include "cos_http_io.h"
#include "cos_log.h"
extern char tsS3Endpoint[]; extern char tsS3Endpoint[];
extern char tsS3AccessKeyId[]; extern char tsS3AccessKeyId[];
extern char tsS3AccessKeySecret[]; extern char tsS3AccessKeySecret[];
...@@ -13,6 +9,10 @@ extern char tsS3BucketName[]; ...@@ -13,6 +9,10 @@ extern char tsS3BucketName[];
extern char tsS3AppId[]; extern char tsS3AppId[];
#ifdef USE_COS #ifdef USE_COS
#include "cos_api.h"
#include "cos_http_io.h"
#include "cos_log.h"
int32_t s3Init() { int32_t s3Init() {
if (cos_http_io_initialize(NULL, 0) != COSE_OK) { if (cos_http_io_initialize(NULL, 0) != COSE_OK) {
return -1; return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册