소스 검색

C++ headers should be more aggressively wrapped in extern "C++".

This is kind of a mess. Some projects will wrap our public headers in
extern "C", so we use extern "C++" around our C++ APIs. However this
needs to be done when including C++ standard library headers too since
they don't always, themselves, guard against being wrapped in extern
"C".

Change-Id: Ib7dd4a6f69ca81dd525ecaa1418b3b7ba85b6579
Reviewed-on: https://boringssl-review.googlesource.com/18504
Reviewed-by: Adam Langley <agl@google.com>
kris/onging/CECPQ3_patch15
David Benjamin 7 년 전
committed by Adam Langley
부모
커밋
af2b1e8210
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. +2
    -4
      include/openssl/span.h

+ 2
- 4
include/openssl/span.h 파일 보기

@@ -19,13 +19,11 @@

#if !defined(BORINGSSL_NO_CXX)

extern "C++" {

#include <algorithm>
#include <type_traits>

#include "../crypto/internal.h"

extern "C++" {

namespace bssl {

template <typename T>


불러오는 중...
취소
저장