mirror of https://github.com/ecmwf/eccodes.git
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:
parent
937a71ef44
commit
9d7f7cf0ec
|
@ -13,8 +13,10 @@
|
|||
|
||||
/* Microsoft Windows Visual Studio support */
|
||||
#if defined(_WIN32) && defined(_MSC_VER)
|
||||
# define ECCODES_ON_WINDOWS
|
||||
# define YY_NO_UNISTD_H
|
||||
#define ECCODES_ON_WINDOWS
|
||||
#ifndef YY_NO_UNISTD_H
|
||||
#define YY_NO_UNISTD_H
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue