Skip to content

Commit 3d601e3

Browse files
committed
Fix compile warning
1 parent 6096264 commit 3d601e3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/bridge/base/ObjectBridge.h

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#pragma once
2626

27+
#ifndef WCDB_EXTERN
2728
#if defined(__cplusplus)
2829
#define WCDB_EXTERN extern "C"
2930
#define WCDB_EXTERN_C_BEGIN extern "C" {
@@ -33,6 +34,7 @@
3334
#define WCDB_EXTERN_C_BEGIN
3435
#define WCDB_EXTERN_C_END
3536
#endif
37+
#endif
3638

3739
WCDB_EXTERN_C_BEGIN
3840

src/common/utility/Macro.h

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
#define WCDB_USED
9999
#endif
100100

101+
#ifndef WCDB_EXTERN
101102
#if defined(__cplusplus)
102103
#define WCDB_EXTERN extern "C" WCDB_API
103104
#define WCDB_EXTERN_C_BEGIN extern "C" {
@@ -107,6 +108,7 @@
107108
#define WCDB_EXTERN_C_BEGIN
108109
#define WCDB_EXTERN_C_END
109110
#endif
111+
#endif
110112

111113
#define WCDB_FIRST_ARG(N, ...) N
112114
#define WCDB_NON_FIRST_ARGS(N, ...) __VA_ARGS__

0 commit comments

Comments
 (0)