|
@@ -209,18 +209,20 @@
|
|
|
#elif defined(__OS2__)
|
|
|
#include "acos2.h"
|
|
|
|
|
|
-#elif defined(_AED_EFI)
|
|
|
-#include "acefi.h"
|
|
|
-
|
|
|
-#elif defined(_GNU_EFI)
|
|
|
-#include "acefi.h"
|
|
|
-
|
|
|
#elif defined(__HAIKU__)
|
|
|
#include "achaiku.h"
|
|
|
|
|
|
#elif defined(__QNX__)
|
|
|
#include "acqnx.h"
|
|
|
|
|
|
+/*
|
|
|
+ * EFI applications can be built with -nostdlib, in this case, it must be
|
|
|
+ * included after including all other host environmental definitions, in
|
|
|
+ * order to override the definitions.
|
|
|
+ */
|
|
|
+#elif defined(_AED_EFI) || defined(_GNU_EFI)
|
|
|
+#include "acefi.h"
|
|
|
+
|
|
|
#else
|
|
|
|
|
|
/* Unknown environment */
|
|
@@ -344,12 +346,16 @@
|
|
|
#include <stdlib.h>
|
|
|
#include <string.h>
|
|
|
#include <ctype.h>
|
|
|
+#ifdef ACPI_APPLICATION
|
|
|
+#include <stdio.h>
|
|
|
+#include <fcntl.h>
|
|
|
+#include <errno.h>
|
|
|
+#include <sys/stat.h>
|
|
|
+#endif
|
|
|
|
|
|
#endif /* ACPI_USE_STANDARD_HEADERS */
|
|
|
|
|
|
-#ifndef ACPI_FILE
|
|
|
#ifdef ACPI_APPLICATION
|
|
|
-#include <stdio.h>
|
|
|
#define ACPI_FILE FILE *
|
|
|
#define ACPI_FILE_OUT stdout
|
|
|
#define ACPI_FILE_ERR stderr
|
|
@@ -358,7 +364,6 @@
|
|
|
#define ACPI_FILE_OUT NULL
|
|
|
#define ACPI_FILE_ERR NULL
|
|
|
#endif /* ACPI_APPLICATION */
|
|
|
-#endif /* ACPI_FILE */
|
|
|
|
|
|
#ifndef ACPI_INIT_FUNCTION
|
|
|
#define ACPI_INIT_FUNCTION
|