cmListFileLexer: Add missing include to avoid possible pointer truncation

The `cmsys/Enconding.h` include had a typo in its surrounding ifdef,
possibly causing a missing function declaration (`cmsysEncoding_DupToWide`).
As this is C code, this resulted in the code compiling, but with a truncated
return value, possibly causing crashes.
This commit is contained in:
Zsolt Parragi 2019-02-12 21:01:18 +01:00 committed by Brad King
parent 6f23321d40
commit 76a5ac2100
2 changed files with 2 additions and 2 deletions

View File

@ -766,7 +766,7 @@ Modify cmListFileLexer.c:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifdef WIN32
#ifdef _WIN32
#include "cmsys/Encoding.h"
#endif

View File

@ -18,7 +18,7 @@ Modify cmListFileLexer.c:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifdef WIN32
#ifdef _WIN32
#include "cmsys/Encoding.h"
#endif