Commit 4f5059e5 authored by Chris Ballinger's avatar Chris Ballinger

Redefine FOUNDATION_EXPORT for C-only pods in umbrella header. Fixes #6024

Fix string escaping

Update CHANGELOG.md

Fix tests for non-ObjC FOUNDATION_EXPORT

Update CHANGELOG
parent eae884fb
...@@ -29,6 +29,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -29,6 +29,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Ben Asher](https://github.com/benasher44) [Ben Asher](https://github.com/benasher44)
[#6064](https://github.com/CocoaPods/CocoaPods/issues/6064) [#6064](https://github.com/CocoaPods/CocoaPods/issues/6064)
* Redefine FOUNDATION_EXPORT for C-only pods in umbrella header
[Chris Ballinger](https://github.com/chrisballinger)
[#6024](https://github.com/CocoaPods/CocoaPods/issues/6024)
## 1.1.1 (2016-10-20) ## 1.1.1 (2016-10-20)
...@@ -67,6 +71,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -67,6 +71,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
* None. * None.
* Redefine FOUNDATION_EXPORT for C-only pods in umbrella header
[Chris Ballinger](https://github.com/chrisballinger)
[#6024](https://github.com/CocoaPods/CocoaPods/issues/6024)
## 1.1.0.rc.3 (2016-10-11) ## 1.1.0.rc.3 (2016-10-11)
......
...@@ -42,6 +42,14 @@ module Pod ...@@ -42,6 +42,14 @@ module Pod
result = '' result = ''
result << "#ifdef __OBJC__\n" result << "#ifdef __OBJC__\n"
result << generate_platform_import_header result << generate_platform_import_header
result << "#else\n"
result << "#ifndef FOUNDATION_EXPORT\n"
result << "#if defined(__cplusplus)\n"
result << "#define FOUNDATION_EXPORT extern \"C\"\n"
result << "#else\n"
result << "#define FOUNDATION_EXPORT extern\n"
result << "#endif\n"
result << "#endif\n"
result << "#endif\n" result << "#endif\n"
result << "\n" result << "\n"
......
Subproject commit a2470cb751b032bf9617332b3d1589e8daa27c24 Subproject commit b840101a6992392409e4419089bf3e55b25b3402
...@@ -11,6 +11,14 @@ module Pod ...@@ -11,6 +11,14 @@ module Pod
@gen.generate.should == <<-EOS.strip_heredoc @gen.generate.should == <<-EOS.strip_heredoc
#ifdef __OBJC__ #ifdef __OBJC__
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif #endif
#import "header.h" #import "header.h"
...@@ -22,6 +30,14 @@ module Pod ...@@ -22,6 +30,14 @@ module Pod
@gen.generate.should == <<-EOS.strip_heredoc @gen.generate.should == <<-EOS.strip_heredoc
#ifdef __OBJC__ #ifdef __OBJC__
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif #endif
...@@ -55,6 +71,14 @@ module Pod ...@@ -55,6 +71,14 @@ module Pod
path.read.should == <<-EOS.strip_heredoc path.read.should == <<-EOS.strip_heredoc
#ifdef __OBJC__ #ifdef __OBJC__
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif #endif
EOS EOS
......
...@@ -14,6 +14,14 @@ module Pod ...@@ -14,6 +14,14 @@ module Pod
@gen.generate.should == <<-EOS.strip_heredoc @gen.generate.should == <<-EOS.strip_heredoc
#ifdef __OBJC__ #ifdef __OBJC__
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif #endif
#import "BlocksKit.h" #import "BlocksKit.h"
...@@ -30,6 +38,14 @@ module Pod ...@@ -30,6 +38,14 @@ module Pod
@gen.generate.should == <<-EOS.strip_heredoc @gen.generate.should == <<-EOS.strip_heredoc
#ifdef __OBJC__ #ifdef __OBJC__
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif #endif
#import "BlocksKit.h" #import "BlocksKit.h"
...@@ -51,6 +67,14 @@ module Pod ...@@ -51,6 +67,14 @@ module Pod
@gen.generate.should == <<-EOS.strip_heredoc @gen.generate.should == <<-EOS.strip_heredoc
#ifdef __OBJC__ #ifdef __OBJC__
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif #endif
#import "BlocksKit.h" #import "BlocksKit.h"
...@@ -61,6 +85,14 @@ module Pod ...@@ -61,6 +85,14 @@ module Pod
@gen.generate.should == <<-EOS.strip_heredoc @gen.generate.should == <<-EOS.strip_heredoc
#ifdef __OBJC__ #ifdef __OBJC__
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif #endif
#import <BananaTree/BananaTree.h> #import <BananaTree/BananaTree.h>
...@@ -80,6 +112,14 @@ module Pod ...@@ -80,6 +112,14 @@ module Pod
@gen.generate.should == <<-EOS.strip_heredoc @gen.generate.should == <<-EOS.strip_heredoc
#ifdef __OBJC__ #ifdef __OBJC__
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif #endif
#import <BananaTree/BananaTree.h> #import <BananaTree/BananaTree.h>
...@@ -91,6 +131,14 @@ module Pod ...@@ -91,6 +131,14 @@ module Pod
@gen.generate.should == <<-EOS.strip_heredoc @gen.generate.should == <<-EOS.strip_heredoc
#ifdef __OBJC__ #ifdef __OBJC__
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif #endif
#import "header.h" #import "header.h"
...@@ -104,6 +152,14 @@ module Pod ...@@ -104,6 +152,14 @@ module Pod
path.read.should == <<-EOS.strip_heredoc path.read.should == <<-EOS.strip_heredoc
#ifdef __OBJC__ #ifdef __OBJC__
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif #endif
#import <BananaTree/BananaTree.h> #import <BananaTree/BananaTree.h>
......
...@@ -291,6 +291,14 @@ module Pod ...@@ -291,6 +291,14 @@ module Pod
expected = <<-EOS.strip_heredoc expected = <<-EOS.strip_heredoc
#ifdef __OBJC__ #ifdef __OBJC__
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif #endif
#import "BlocksKit.h" #import "BlocksKit.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment