Add #ifndef guards for SdkLog definition to fix conflicting definitions (#403)

This commit is contained in:
Archit Aggarwal 2020-11-12 11:10:12 -08:00 committed by GitHub
parent f06330768f
commit 6debf6a2c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 87 additions and 44 deletions

View file

@ -56,7 +56,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"
/************ End of logging configuration ****************/ /************ End of logging configuration ****************/

View file

@ -61,7 +61,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -53,7 +53,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -56,7 +56,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"
/************ End of logging configuration ****************/ /************ End of logging configuration ****************/

View file

@ -61,7 +61,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -58,7 +58,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"
/************ End of logging configuration ****************/ /************ End of logging configuration ****************/

View file

@ -59,7 +59,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -58,7 +58,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"
/************ End of logging configuration ****************/ /************ End of logging configuration ****************/

View file

@ -58,7 +58,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"
@ -261,13 +263,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/********************************************************************************** /**********************************************************************************
* Error checks and derived values only below here - do not edit below here. -----* * Error checks and derived values only below here - do not edit below here. -----*
**********************************************************************************/ **********************************************************************************/
/* Compile time error for some undefined configs, and provide default values /* Compile time error for some undefined configs, and provide default values
@ -277,7 +275,8 @@ extern void vLoggingPrintf( const char * pcFormatString,
#endif #endif
#ifndef democonfigCLIENT_IDENTIFIER #ifndef democonfigCLIENT_IDENTIFIER
/**
/**
* @brief The MQTT client identifier used in this example. Each client identifier * @brief The MQTT client identifier used in this example. Each client identifier
* must be unique so edit as required to ensure no two clients connecting to the * must be unique so edit as required to ensure no two clients connecting to the
* same broker use the same client identifier. Using a #define is for convenience * same broker use the same client identifier. Using a #define is for convenience
@ -296,7 +295,7 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* If no username is defined, then a client certificate/key is required. */ /* If no username is defined, then a client certificate/key is required. */
#ifndef democonfigCLIENT_USERNAME #ifndef democonfigCLIENT_USERNAME
/* /*
*!!! Please note democonfigCLIENT_PRIVATE_KEY_PEM in used for *!!! Please note democonfigCLIENT_PRIVATE_KEY_PEM in used for
*!!! convenience of demonstration only. Production devices should *!!! convenience of demonstration only. Production devices should
*!!! store keys securely, such as within a secure element. *!!! store keys securely, such as within a secure element.

View file

@ -56,7 +56,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"
/************ End of logging configuration ****************/ /************ End of logging configuration ****************/

View file

@ -61,7 +61,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -58,7 +58,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"
/************ End of logging configuration ****************/ /************ End of logging configuration ****************/

View file

@ -59,7 +59,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -58,7 +58,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"
/************ End of logging configuration ****************/ /************ End of logging configuration ****************/

View file

@ -59,7 +59,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -56,7 +56,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"
/************ End of logging configuration ****************/ /************ End of logging configuration ****************/

View file

@ -65,7 +65,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -61,7 +61,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -65,7 +65,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -62,7 +62,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -57,7 +57,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -60,7 +60,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"

View file

@ -52,7 +52,9 @@ extern void vLoggingPrintf( const char * pcFormatString,
/* Map the SdkLog macro to the logging function to enable logging /* Map the SdkLog macro to the logging function to enable logging
* on Windows simulator. */ * on Windows simulator. */
#define SdkLog( message ) vLoggingPrintf message #ifndef SdkLog
#define SdkLog( message ) vLoggingPrintf message
#endif
#include "logging_stack.h" #include "logging_stack.h"