aboutsummaryrefslogtreecommitdiff
path: root/source/include/platform
diff options
context:
space:
mode:
Diffstat (limited to 'source/include/platform')
-rw-r--r--source/include/platform/acenv.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/include/platform/acenv.h b/source/include/platform/acenv.h
index 46eeb9df520c..bd6816a9b700 100644
--- a/source/include/platform/acenv.h
+++ b/source/include/platform/acenv.h
@@ -270,6 +270,21 @@
#define ACPI_DISASSEMBLER 1
#endif
+/*
+ * acpisrc CR\LF support
+ * Unix file line endings do not include the carriage return.
+ * If the acpisrc utility is being built using a microsoft compiler, it means
+ * that it will be running on a windows machine which means that the output is
+ * expected to have CR/LF newlines. If the acpisrc utility is built with
+ * anything else, it will likely run on a system with LF newlines. This flag
+ * tells the acpisrc utility that newlines will be in the LF format.
+ */
+#if defined(ACPI_SRC_APP) && !defined(_MSC_VER)
+#define ACPI_SRC_OS_LF_ONLY 1
+#else
+#define ACPI_SRC_OS_LF_ONLY 0
+#endif
+
/*! [Begin] no source code translation */
/******************************************************************************