mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Clean up FreeBSD-specific header file:
- Define ACPI_USE_DO_WHILE_0 to add do while(0) around return_*() macros. - Define __cdecl only for user land. It will never be used in kernel. - Remove __cli() and __sti(). They were deprecated long ago.
This commit is contained in:
parent
3cfc28b0a0
commit
389cff5113
1 changed files with 3 additions and 6 deletions
|
|
@ -125,11 +125,10 @@
|
|||
|
||||
#define ACPI_UINTPTR_T uintptr_t
|
||||
|
||||
#define ACPI_USE_DO_WHILE_0
|
||||
#define ACPI_USE_LOCAL_CACHE
|
||||
#define ACPI_USE_SYSTEM_CLIBRARY
|
||||
|
||||
#define __cdecl
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
#include <sys/ctype.h>
|
||||
|
|
@ -168,12 +167,10 @@
|
|||
|
||||
#define ACPI_THREAD_ID pthread_t
|
||||
|
||||
/* Not building kernel code, so use libc */
|
||||
#define ACPI_USE_STANDARD_HEADERS
|
||||
#define ACPI_FLUSH_CPU_CACHE()
|
||||
|
||||
#define __cli()
|
||||
#define __sti()
|
||||
#define ACPI_FLUSH_CPU_CACHE()
|
||||
#define __cdecl
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue