Windows: define YY_NO_UNISTD_H only if it's not defined already

This was causing a macro redefinition warning for those building with
Visual Studio instead of cmake.
This commit is contained in:
Daniel Tipping 2019-01-10 11:53:36 +00:00
parent 937a71ef44
commit 9d7f7cf0ec
1 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,9 @@
/* Microsoft Windows Visual Studio support */
#if defined(_WIN32) && defined(_MSC_VER)
#define ECCODES_ON_WINDOWS
#ifndef YY_NO_UNISTD_H
#define YY_NO_UNISTD_H
#endif
#endif
#endif