Skip to content

Comply with c99 standard #1992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions FirebaseAuth.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ supports email and password accounts, as well as several 3rd party authenticatio
'Firebase/Auth/CHANGELOG.md'
]
s.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
'FIRAuth_VERSION=' + s.version.to_s +
' FIRAuth_MINOR_VERSION=' + s.version.to_s.split(".")[0] + "." + s.version.to_s.split(".")[1]
Expand Down
5 changes: 3 additions & 2 deletions FirebaseCore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ Firebase Core includes FIRApp and FIROptions which provide central configuration
]
s.dependency 'GoogleUtilities/Logger', '~> 5.2'
s.pod_target_xcconfig = {
'OTHER_CFLAGS' => '-fno-autolink',
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
'FIRCore_VERSION=' + s.version.to_s + ' Firebase_VERSION=5.10.0'
'FIRCore_VERSION=' + s.version.to_s + ' Firebase_VERSION=5.10.0',
'OTHER_CFLAGS' => '-fno-autolink'
}
end
4 changes: 3 additions & 1 deletion FirebaseDatabase.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Simplify your iOS development, grow your user base, and monetize more effectivel
s.dependency 'leveldb-library', '~> 1.18'
s.dependency 'FirebaseCore', '~> 5.0'
s.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
'FIRDatabase_VERSION=' + s.version.to_s }
'FIRDatabase_VERSION=' + s.version.to_s
}
end
5 changes: 3 additions & 2 deletions FirebaseDynamicLinks.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ Firebase Dynamic Links are deep links that enhance user experience and increase
s.ios.dependency 'FirebaseAnalyticsInterop', '~> 1.0'

s.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"/Firebase',
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' => 'FIRDynamicLinks_VERSION=' + s.version.to_s +
' FIRDynamicLinks3P GIN_SCION_LOGGING'
' FIRDynamicLinks3P GIN_SCION_LOGGING',
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"/Firebase'
}
end
1 change: 1 addition & 0 deletions FirebaseFirestore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
s.frameworks = 'MobileCoreServices', 'SystemConfiguration'
s.library = 'c++'
s.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
"FIRFirestore_VERSION=#{s.version} " +
'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ' +
Expand Down
4 changes: 4 additions & 0 deletions FirebaseFunctions.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ iOS SDK for Cloud Functions for Firebase.

s.dependency 'FirebaseCore', '~> 5.0'
s.dependency 'GTMSessionFetcher/Core', '~> 1.1'

s.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99'
}
end
4 changes: 3 additions & 1 deletion FirebaseInAppMessagingDisplay.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ Firebase In-App Messaging SDK.
base_dir + 'Resources/*.png']
}

s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' =>
s.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
'$(inherited) ' +
'FIRInAppMessagingDisplay_LIB_VERSION=' + String(s.version)
}
Expand Down
1 change: 1 addition & 0 deletions FirebaseMessaging.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ device, and it is completely free.
s.public_header_files = base_dir + 'Public/*.h'
s.library = 'sqlite3'
s.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ' +
'FIRMessaging_LIB_VERSION=' + String(s.version)
Expand Down
4 changes: 3 additions & 1 deletion FirebaseStorage.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Firebase Storage provides robust, secure file uploads and downloads from Firebas
s.dependency 'FirebaseCore', '~> 5.1'
s.dependency 'GTMSessionFetcher/Core', '~> 1.1'
s.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
'FIRStorage_VERSION=' + s.version.to_s }
'FIRStorage_VERSION=' + s.version.to_s
}
end
2 changes: 1 addition & 1 deletion scripts/if_changed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ else
;;

Firestore-xcodebuild|Firestore-pod-lib-lint)
check_changes '^Firestore'
check_changes '^(Firestore|FirebaseFirestore.podspec|FirebaseFirestoreSwift.podspec)'
;;

Firestore-cmake)
Expand Down