瀏覽代碼

Define BORINGSSL_NO_CXX if !__cplusplus.

This should make it a little easier to write C++-only public headers.

Change-Id: Ie5bff241c810cb5330f66d8a4dc1dd8b2d69c7c9
Reviewed-on: https://boringssl-review.googlesource.com/18225
Reviewed-by: David Benjamin <davidben@google.com>
kris/onging/CECPQ3_patch15
David Benjamin 7 年之前
父節點
當前提交
ebb4a37ed2
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. +3
    -4
      include/openssl/base.h

+ 3
- 4
include/openssl/base.h 查看文件

@@ -340,6 +340,9 @@ typedef void *OPENSSL_BLOCK;

#if defined(__cplusplus)
} /* extern C */
#elif !defined(BORINGSSL_NO_CXX)
#define BORINGSSL_NO_CXX
#endif

// MSVC doesn't set __cplusplus to 201103 to indicate C++11 support (see
// https://connect.microsoft.com/VisualStudio/feedback/details/763051/a-value-of-predefined-macro-cplusplus-is-still-199711l)
@@ -370,8 +373,6 @@ extern "C++" {

extern "C++" {

#include <memory>

namespace bssl {

namespace internal {
@@ -452,6 +453,4 @@ using UniquePtr = std::unique_ptr<T, internal::Deleter<T>>;

#endif // !BORINGSSL_NO_CXX

#endif

#endif /* OPENSSL_HEADER_BASE_H */

Loading…
取消
儲存