Skip to content

Commit 2c14b91

Browse files
Alovchin91ddobrev
authored andcommitted
Fix the generated C++ for Xcode 10.2
Fixes #1203 Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 46332cc commit 2c14b91

File tree

8 files changed

+9
-0
lines changed

8 files changed

+9
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ os:
55
- linux
66
- osx
77

8+
osx_image: xcode10.2
9+
810
dist: xenial
911

1012
addons:

src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std-symbols.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2+
#define _LIBCPP_HIDE_FROM_ABI
23

34
#include <string>
45

src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std-symbols.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2+
#define _LIBCPP_HIDE_FROM_ABI
23

34
#include <string>
45

src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std-symbols.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2+
#define _LIBCPP_HIDE_FROM_ABI
23

34
#include <string>
45

src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std-symbols.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2+
#define _LIBCPP_HIDE_FROM_ABI
23

34
#include <string>
45

src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std-symbols.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2+
#define _LIBCPP_HIDE_FROM_ABI
23

34
#include <string>
45

src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std-symbols.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2+
#define _LIBCPP_HIDE_FROM_ABI
23

34
#include <string>
45

src/Generator/Passes/SymbolsCodeGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public SymbolsCodeGenerator(BindingContext context, IEnumerable<TranslationUnit>
2121
public override void Process()
2222
{
2323
WriteLine("#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS");
24+
WriteLine("#define _LIBCPP_HIDE_FROM_ABI");
2425
NewLine();
2526

2627
if (TranslationUnit.Module == Options.SystemModule)

0 commit comments

Comments
 (0)