Correct default definition of a config macro (#30)

The check for defining the default value of
ffconfigUNICODE_UTF16_SUPPORT was #if( ffconfigUNICODE_UTF16_SUPPORT == 0 )
which resulted in macro redefinition warnings if the application defined
the macro to 0. This commit changes the check to
 #if !defined( ffconfigUNICODE_UTF16_SUPPORT ) to ensure that default
value if only defined when the application does not define the macro and
hence, no warning is generated even when the application defines
ffconfigUNICODE_UTF16_SUPPORT to 0.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
Gaurav-Aggarwal-AWS
2022-06-07 08:56:44 -07:00
committed by GitHub
parent 16c026a519
commit c25ae5f70c

View File

@@ -122,7 +122,7 @@
* - UTF-8 (ffconfigUNICODE_UTF8_SUPPORT = 1)
* - UTF-16 (ffconfigUNICODE_UTF16_SUPPORT = 1)
*/
#if ( ffconfigUNICODE_UTF16_SUPPORT == 0 )
#if !defined( ffconfigUNICODE_UTF16_SUPPORT )
/* Only used when ffconfigLFN_SUPPORT is set to 1.
*