diff options
author | Michael Haney <mikehaney24@users.noreply.github.com> | 2017-09-06 06:55:01 -0700 |
---|---|---|
committer | Paul Beusterien <paulbeusterien@google.com> | 2017-09-06 06:55:01 -0700 |
commit | 50c09007871f4498b9b1e92a2398a63416198514 (patch) | |
tree | a76e9e3880da9c8ff88f11b89a4327cab5fc6643 /Firebase/Core | |
parent | 954484c4c44036c9b4e67aa1f81c87345675e289 (diff) |
Ensure that FIRLogger functions are declared as C (#238)
Wrap the FIRLogger functions in an extern "C" when being compiled as C++.
Diffstat (limited to 'Firebase/Core')
-rw-r--r-- | Firebase/Core/Private/FIRLogger.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Firebase/Core/Private/FIRLogger.h b/Firebase/Core/Private/FIRLogger.h index b7542d5..f1aebd3 100644 --- a/Firebase/Core/Private/FIRLogger.h +++ b/Firebase/Core/Private/FIRLogger.h @@ -88,6 +88,10 @@ extern void FIRLogBasic(FIRLoggerLevel level, #endif ); +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + /** * The following functions accept the following parameters in order: * (required) service name of type FIRLoggerService. @@ -112,4 +116,8 @@ extern void FIRLogInfo(FIRLoggerService service, NSString *messageCode, NSString extern void FIRLogDebug(FIRLoggerService service, NSString *messageCode, NSString *message, ...) NS_FORMAT_FUNCTION(3, 4); +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + NS_ASSUME_NONNULL_END |