]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.core/native/FMILibrary/src/XML/NOTE
Switch to full JavaSE-11+ compatibility
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / src / XML / NOTE
1 If FMILIB_BUILD_LEX_AND_PARSER_FILES is set in the cmake build, the resulting
2 generated sources has to be modified by hand. Lines containing the following
3 content:
4
5 #ifndef YY_NO_UNISTD_H
6 /* Special case for "unistd.h", since it is non-ANSI. We include it way
7  * down here because we want the user's section 1 to have been scanned first.
8  * The user has a chance to override it with an option.
9  */
10 #include <unistd.h>
11 #endif
12
13 needs to be updated to:
14
15 #ifndef YY_NO_UNISTD_H
16 /* Special case for "unistd.h", since it is non-ANSI. We include it way
17  * down here because we want the user's section 1 to have been scanned first.
18  * The user has a chance to override it with an option.
19  */
20 #include <unistd.h>
21 #else
22 /*windows compatibility case*/
23 #include <io.h>
24 #define isatty _isatty
25 #define fileno _fileno
26 #endif