]> gerrit.simantics Code Review - simantics/fmil.git/blobdiff - org.simantics.fmil.core/native/FMILibrary/src/XML/NOTE
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / src / XML / NOTE
diff --git a/org.simantics.fmil.core/native/FMILibrary/src/XML/NOTE b/org.simantics.fmil.core/native/FMILibrary/src/XML/NOTE
new file mode 100644 (file)
index 0000000..da43bb1
--- /dev/null
@@ -0,0 +1,26 @@
+If FMILIB_BUILD_LEX_AND_PARSER_FILES is set in the cmake build, the resulting
+generated sources has to be modified by hand. Lines containing the following
+content:
+
+#ifndef YY_NO_UNISTD_H
+/* Special case for "unistd.h", since it is non-ANSI. We include it way
+ * down here because we want the user's section 1 to have been scanned first.
+ * The user has a chance to override it with an option.
+ */
+#include <unistd.h>
+#endif
+
+needs to be updated to:
+
+#ifndef YY_NO_UNISTD_H
+/* Special case for "unistd.h", since it is non-ANSI. We include it way
+ * down here because we want the user's section 1 to have been scanned first.
+ * The user has a chance to override it with an option.
+ */
+#include <unistd.h>
+#else
+/*windows compatibility case*/
+#include <io.h>
+#define isatty _isatty
+#define fileno _fileno
+#endif
\ No newline at end of file