mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 01:44:33 +03:00
Update msvc header for VC++ 9 (VS 2008)
Add a couple new compiler-specific items to eliminate warnings.
This commit is contained in:
parent
5d65ffe2ef
commit
bb624f47b8
@ -116,6 +116,18 @@
|
||||
#ifndef __ACMSVC_H__
|
||||
#define __ACMSVC_H__
|
||||
|
||||
/* Eliminate warnings for "old" (non-secure) versions of clib functions */
|
||||
|
||||
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
|
||||
/* Eliminate warnings for POSIX clib function names (open, write, etc.) */
|
||||
|
||||
#ifndef _CRT_NONSTDC_NO_DEPRECATE
|
||||
#define _CRT_NONSTDC_NO_DEPRECATE
|
||||
#endif
|
||||
|
||||
#define COMPILER_DEPENDENT_INT64 __int64
|
||||
#define COMPILER_DEPENDENT_UINT64 unsigned __int64
|
||||
#define ACPI_INLINE __inline
|
||||
@ -180,4 +192,8 @@
|
||||
/* warn C4131: uses old-style declarator (iASL compiler only) */
|
||||
#pragma warning(disable:4131)
|
||||
|
||||
#if _MSC_VER > 1200 /* Versions above VC++ 6 */
|
||||
#pragma warning( disable : 4295 ) /* needed for acpredef.h array */
|
||||
#endif
|
||||
|
||||
#endif /* __ACMSVC_H__ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user