Browse Source

ACPICA: Changes for Cygwin compatibility

Allow generation of ACPICA apps on Cygwin.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Bob Moore 18 năm trước cách đây
mục cha
commit
a0a3f6c69b
2 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 1 1
      include/acpi/platform/acenv.h
  2. 3 0
      include/acpi/platform/aclinux.h

+ 1 - 1
include/acpi/platform/acenv.h

@@ -136,7 +136,7 @@
 
 /*! [Begin] no source code translation */
 
-#if defined(__linux__)
+#if defined(_LINUX) || defined(__linux__)
 #include "aclinux.h"
 
 #elif defined(_AED_EFI)

+ 3 - 0
include/acpi/platform/aclinux.h

@@ -91,7 +91,10 @@
 #define ACPI_USE_NATIVE_DIVIDE
 #endif
 
+#ifndef __cdecl
 #define __cdecl
+#endif
+
 #define ACPI_FLUSH_CPU_CACHE()
 #endif				/* __KERNEL__ */