xref: /dflybsd-src/sys/contrib/dev/acpica/source/include/platform/acmsvc.h (revision 383048aca08c2de51d27aa8638a36982a0d74550)
10d02842fSSascha Wildner /******************************************************************************
20d02842fSSascha Wildner  *
30d02842fSSascha Wildner  * Name: acmsvc.h - VC specific defines, etc.
40d02842fSSascha Wildner  *
50d02842fSSascha Wildner  *****************************************************************************/
60d02842fSSascha Wildner 
7b4315fc7SSascha Wildner /******************************************************************************
8b4315fc7SSascha Wildner  *
9b4315fc7SSascha Wildner  * 1. Copyright Notice
10b4315fc7SSascha Wildner  *
11*383048acSSascha Wildner  * Some or all of this work - Copyright (c) 1999 - 2021, Intel Corp.
120d02842fSSascha Wildner  * All rights reserved.
130d02842fSSascha Wildner  *
14b4315fc7SSascha Wildner  * 2. License
15b4315fc7SSascha Wildner  *
16b4315fc7SSascha Wildner  * 2.1. This is your license from Intel Corp. under its intellectual property
17b4315fc7SSascha Wildner  * rights. You may have additional license terms from the party that provided
18b4315fc7SSascha Wildner  * you this software, covering your right to use that party's intellectual
19b4315fc7SSascha Wildner  * property rights.
20b4315fc7SSascha Wildner  *
21b4315fc7SSascha Wildner  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22b4315fc7SSascha Wildner  * copy of the source code appearing in this file ("Covered Code") an
23b4315fc7SSascha Wildner  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24b4315fc7SSascha Wildner  * base code distributed originally by Intel ("Original Intel Code") to copy,
25b4315fc7SSascha Wildner  * make derivatives, distribute, use and display any portion of the Covered
26b4315fc7SSascha Wildner  * Code in any form, with the right to sublicense such rights; and
27b4315fc7SSascha Wildner  *
28b4315fc7SSascha Wildner  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29b4315fc7SSascha Wildner  * license (with the right to sublicense), under only those claims of Intel
30b4315fc7SSascha Wildner  * patents that are infringed by the Original Intel Code, to make, use, sell,
31b4315fc7SSascha Wildner  * offer to sell, and import the Covered Code and derivative works thereof
32b4315fc7SSascha Wildner  * solely to the minimum extent necessary to exercise the above copyright
33b4315fc7SSascha Wildner  * license, and in no event shall the patent license extend to any additions
34b4315fc7SSascha Wildner  * to or modifications of the Original Intel Code. No other license or right
35b4315fc7SSascha Wildner  * is granted directly or by implication, estoppel or otherwise;
36b4315fc7SSascha Wildner  *
37b4315fc7SSascha Wildner  * The above copyright and patent license is granted only if the following
38b4315fc7SSascha Wildner  * conditions are met:
39b4315fc7SSascha Wildner  *
40b4315fc7SSascha Wildner  * 3. Conditions
41b4315fc7SSascha Wildner  *
42b4315fc7SSascha Wildner  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43b4315fc7SSascha Wildner  * Redistribution of source code of any substantial portion of the Covered
44b4315fc7SSascha Wildner  * Code or modification with rights to further distribute source must include
45b4315fc7SSascha Wildner  * the above Copyright Notice, the above License, this list of Conditions,
46b4315fc7SSascha Wildner  * and the following Disclaimer and Export Compliance provision. In addition,
47b4315fc7SSascha Wildner  * Licensee must cause all Covered Code to which Licensee contributes to
48b4315fc7SSascha Wildner  * contain a file documenting the changes Licensee made to create that Covered
49b4315fc7SSascha Wildner  * Code and the date of any change. Licensee must include in that file the
50b4315fc7SSascha Wildner  * documentation of any changes made by any predecessor Licensee. Licensee
51b4315fc7SSascha Wildner  * must include a prominent statement that the modification is derived,
52b4315fc7SSascha Wildner  * directly or indirectly, from Original Intel Code.
53b4315fc7SSascha Wildner  *
54b4315fc7SSascha Wildner  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55b4315fc7SSascha Wildner  * Redistribution of source code of any substantial portion of the Covered
56b4315fc7SSascha Wildner  * Code or modification without rights to further distribute source must
57b4315fc7SSascha Wildner  * include the following Disclaimer and Export Compliance provision in the
58b4315fc7SSascha Wildner  * documentation and/or other materials provided with distribution. In
59b4315fc7SSascha Wildner  * addition, Licensee may not authorize further sublicense of source of any
60b4315fc7SSascha Wildner  * portion of the Covered Code, and must include terms to the effect that the
61b4315fc7SSascha Wildner  * license from Licensee to its licensee is limited to the intellectual
62b4315fc7SSascha Wildner  * property embodied in the software Licensee provides to its licensee, and
63b4315fc7SSascha Wildner  * not to intellectual property embodied in modifications its licensee may
64b4315fc7SSascha Wildner  * make.
65b4315fc7SSascha Wildner  *
66b4315fc7SSascha Wildner  * 3.3. Redistribution of Executable. Redistribution in executable form of any
67b4315fc7SSascha Wildner  * substantial portion of the Covered Code or modification must reproduce the
68b4315fc7SSascha Wildner  * above Copyright Notice, and the following Disclaimer and Export Compliance
69b4315fc7SSascha Wildner  * provision in the documentation and/or other materials provided with the
70b4315fc7SSascha Wildner  * distribution.
71b4315fc7SSascha Wildner  *
72b4315fc7SSascha Wildner  * 3.4. Intel retains all right, title, and interest in and to the Original
73b4315fc7SSascha Wildner  * Intel Code.
74b4315fc7SSascha Wildner  *
75b4315fc7SSascha Wildner  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76b4315fc7SSascha Wildner  * Intel shall be used in advertising or otherwise to promote the sale, use or
77b4315fc7SSascha Wildner  * other dealings in products derived from or relating to the Covered Code
78b4315fc7SSascha Wildner  * without prior written authorization from Intel.
79b4315fc7SSascha Wildner  *
80b4315fc7SSascha Wildner  * 4. Disclaimer and Export Compliance
81b4315fc7SSascha Wildner  *
82b4315fc7SSascha Wildner  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83b4315fc7SSascha Wildner  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84b4315fc7SSascha Wildner  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85b4315fc7SSascha Wildner  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86b4315fc7SSascha Wildner  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87b4315fc7SSascha Wildner  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
88b4315fc7SSascha Wildner  * PARTICULAR PURPOSE.
89b4315fc7SSascha Wildner  *
90b4315fc7SSascha Wildner  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91b4315fc7SSascha Wildner  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92b4315fc7SSascha Wildner  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93b4315fc7SSascha Wildner  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94b4315fc7SSascha Wildner  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95b4315fc7SSascha Wildner  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96b4315fc7SSascha Wildner  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
97b4315fc7SSascha Wildner  * LIMITED REMEDY.
98b4315fc7SSascha Wildner  *
99b4315fc7SSascha Wildner  * 4.3. Licensee shall not export, either directly or indirectly, any of this
100b4315fc7SSascha Wildner  * software or system incorporating such software without first obtaining any
101b4315fc7SSascha Wildner  * required license or other approval from the U. S. Department of Commerce or
102b4315fc7SSascha Wildner  * any other agency or department of the United States Government. In the
103b4315fc7SSascha Wildner  * event Licensee exports any such software from the United States or
104b4315fc7SSascha Wildner  * re-exports any such software from a foreign destination, Licensee shall
105b4315fc7SSascha Wildner  * ensure that the distribution and export/re-export of the software is in
106b4315fc7SSascha Wildner  * compliance with all laws, regulations, orders, or other restrictions of the
107b4315fc7SSascha Wildner  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108b4315fc7SSascha Wildner  * any of its subsidiaries will export/re-export any technical data, process,
109b4315fc7SSascha Wildner  * software, or service, directly or indirectly, to any country for which the
110b4315fc7SSascha Wildner  * United States government or any agency thereof requires an export license,
111b4315fc7SSascha Wildner  * other governmental approval, or letter of assurance, without first obtaining
112b4315fc7SSascha Wildner  * such license, approval or letter.
113b4315fc7SSascha Wildner  *
114b4315fc7SSascha Wildner  *****************************************************************************
115b4315fc7SSascha Wildner  *
116b4315fc7SSascha Wildner  * Alternatively, you may choose to be licensed under the terms of the
117b4315fc7SSascha Wildner  * following license:
118b4315fc7SSascha Wildner  *
1190d02842fSSascha Wildner  * Redistribution and use in source and binary forms, with or without
1200d02842fSSascha Wildner  * modification, are permitted provided that the following conditions
1210d02842fSSascha Wildner  * are met:
1220d02842fSSascha Wildner  * 1. Redistributions of source code must retain the above copyright
1230d02842fSSascha Wildner  *    notice, this list of conditions, and the following disclaimer,
1240d02842fSSascha Wildner  *    without modification.
1250d02842fSSascha Wildner  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
1260d02842fSSascha Wildner  *    substantially similar to the "NO WARRANTY" disclaimer below
1270d02842fSSascha Wildner  *    ("Disclaimer") and any redistribution must be conditioned upon
1280d02842fSSascha Wildner  *    including a substantially similar Disclaimer requirement for further
1290d02842fSSascha Wildner  *    binary redistribution.
1300d02842fSSascha Wildner  * 3. Neither the names of the above-listed copyright holders nor the names
1310d02842fSSascha Wildner  *    of any contributors may be used to endorse or promote products derived
1320d02842fSSascha Wildner  *    from this software without specific prior written permission.
1330d02842fSSascha Wildner  *
134b4315fc7SSascha Wildner  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135b4315fc7SSascha Wildner  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136b4315fc7SSascha Wildner  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137b4315fc7SSascha Wildner  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138b4315fc7SSascha Wildner  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139b4315fc7SSascha Wildner  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140b4315fc7SSascha Wildner  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141b4315fc7SSascha Wildner  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142b4315fc7SSascha Wildner  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143b4315fc7SSascha Wildner  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144b4315fc7SSascha Wildner  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145b4315fc7SSascha Wildner  *
146b4315fc7SSascha Wildner  * Alternatively, you may choose to be licensed under the terms of the
1470d02842fSSascha Wildner  * GNU General Public License ("GPL") version 2 as published by the Free
1480d02842fSSascha Wildner  * Software Foundation.
1490d02842fSSascha Wildner  *
150b4315fc7SSascha Wildner  *****************************************************************************/
1510d02842fSSascha Wildner 
1520d02842fSSascha Wildner #ifndef __ACMSVC_H__
1530d02842fSSascha Wildner #define __ACMSVC_H__
1540d02842fSSascha Wildner 
15525ca8c79SSascha Wildner /* Note: do not include any C library headers here */
1560d02842fSSascha Wildner 
1570d02842fSSascha Wildner /*
1583cc0afc6SSascha Wildner  * Note: MSVC project files should define ACPI_DEBUGGER and ACPI_DISASSEMBLER
1593cc0afc6SSascha Wildner  * as appropriate to enable editor functions like "Find all references".
1603cc0afc6SSascha Wildner  * The editor isn't smart enough to dig through the include files to find
1613cc0afc6SSascha Wildner  * out if these are actually defined.
1623cc0afc6SSascha Wildner  */
1633cc0afc6SSascha Wildner 
1640d02842fSSascha Wildner /* Eliminate warnings for "old" (non-secure) versions of clib functions */
1650d02842fSSascha Wildner 
1660d02842fSSascha Wildner #ifndef _CRT_SECURE_NO_WARNINGS
1670d02842fSSascha Wildner #define _CRT_SECURE_NO_WARNINGS
1680d02842fSSascha Wildner #endif
1690d02842fSSascha Wildner 
1700d02842fSSascha Wildner /* Eliminate warnings for POSIX clib function names (open, write, etc.) */
1710d02842fSSascha Wildner 
1720d02842fSSascha Wildner #ifndef _CRT_NONSTDC_NO_DEPRECATE
1730d02842fSSascha Wildner #define _CRT_NONSTDC_NO_DEPRECATE
1740d02842fSSascha Wildner #endif
1750d02842fSSascha Wildner 
1760d02842fSSascha Wildner #define COMPILER_DEPENDENT_INT64    __int64
1770d02842fSSascha Wildner #define COMPILER_DEPENDENT_UINT64   unsigned __int64
1780d02842fSSascha Wildner #define ACPI_INLINE                 __inline
1790d02842fSSascha Wildner 
1800d02842fSSascha Wildner /*
1810d02842fSSascha Wildner  * Calling conventions:
1820d02842fSSascha Wildner  *
1830d02842fSSascha Wildner  * ACPI_SYSTEM_XFACE        - Interfaces to host OS (handlers, threads)
1840d02842fSSascha Wildner  * ACPI_EXTERNAL_XFACE      - External ACPI interfaces
1850d02842fSSascha Wildner  * ACPI_INTERNAL_XFACE      - Internal ACPI interfaces
1860d02842fSSascha Wildner  * ACPI_INTERNAL_VAR_XFACE  - Internal variable-parameter list interfaces
1870d02842fSSascha Wildner  */
1880d02842fSSascha Wildner #define ACPI_SYSTEM_XFACE           __cdecl
1890d02842fSSascha Wildner #define ACPI_EXTERNAL_XFACE
1900d02842fSSascha Wildner #define ACPI_INTERNAL_XFACE
1910d02842fSSascha Wildner #define ACPI_INTERNAL_VAR_XFACE     __cdecl
1920d02842fSSascha Wildner 
193277350a0SSascha Wildner 
194277350a0SSascha Wildner /* Do not maintain the architecture specific stuffs for the EFI ports */
195277350a0SSascha Wildner 
1963c639e0cSSascha Wildner #if defined(__i386__) && !defined(_GNU_EFI) && !defined(_EDK2_EFI)
1970d02842fSSascha Wildner /*
1980d02842fSSascha Wildner  * Math helper functions
1990d02842fSSascha Wildner  */
2003c639e0cSSascha Wildner #ifndef ACPI_DIV_64_BY_32
2010d02842fSSascha Wildner #define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32) \
2020d02842fSSascha Wildner {                           \
2030d02842fSSascha Wildner     __asm mov    edx, n_hi  \
2040d02842fSSascha Wildner     __asm mov    eax, n_lo  \
2050d02842fSSascha Wildner     __asm div    d32        \
2060d02842fSSascha Wildner     __asm mov    q32, eax   \
2070d02842fSSascha Wildner     __asm mov    r32, edx   \
2080d02842fSSascha Wildner }
2093c639e0cSSascha Wildner #endif
2100d02842fSSascha Wildner 
2113c639e0cSSascha Wildner #ifndef ACPI_MUL_64_BY_32
2123c639e0cSSascha Wildner #define ACPI_MUL_64_BY_32(n_hi, n_lo, m32, p32, c32) \
2133c639e0cSSascha Wildner {                           \
2143c639e0cSSascha Wildner     __asm mov    edx, n_hi  \
2153c639e0cSSascha Wildner     __asm mov    eax, n_lo  \
2163c639e0cSSascha Wildner     __asm mul    m32        \
2173c639e0cSSascha Wildner     __asm mov    p32, eax   \
2183c639e0cSSascha Wildner     __asm mov    c32, edx   \
2193c639e0cSSascha Wildner }
2203c639e0cSSascha Wildner #endif
2213c639e0cSSascha Wildner 
2223c639e0cSSascha Wildner #ifndef ACPI_SHIFT_LEFT_64_BY_32
2233c639e0cSSascha Wildner #define ACPI_SHIFT_LEFT_64_BY_32(n_hi, n_lo, s32) \
2243c639e0cSSascha Wildner {                               \
2253c639e0cSSascha Wildner     __asm mov    edx, n_hi      \
2263c639e0cSSascha Wildner     __asm mov    eax, n_lo      \
2273c639e0cSSascha Wildner     __asm mov    ecx, s32       \
2283c639e0cSSascha Wildner     __asm and    ecx, 31        \
2293c639e0cSSascha Wildner     __asm shld   edx, eax, cl   \
2303c639e0cSSascha Wildner     __asm shl    eax, cl        \
2313c639e0cSSascha Wildner     __asm mov    n_hi, edx      \
2323c639e0cSSascha Wildner     __asm mov    n_lo, eax      \
2333c639e0cSSascha Wildner }
2343c639e0cSSascha Wildner #endif
2353c639e0cSSascha Wildner 
2363c639e0cSSascha Wildner #ifndef ACPI_SHIFT_RIGHT_64_BY_32
2373c639e0cSSascha Wildner #define ACPI_SHIFT_RIGHT_64_BY_32(n_hi, n_lo, s32) \
2383c639e0cSSascha Wildner {                               \
2393c639e0cSSascha Wildner     __asm mov    edx, n_hi      \
2403c639e0cSSascha Wildner     __asm mov    eax, n_lo      \
2413c639e0cSSascha Wildner     __asm mov    ecx, s32       \
2423c639e0cSSascha Wildner     __asm and    ecx, 31        \
2433c639e0cSSascha Wildner     __asm shrd   eax, edx, cl   \
2443c639e0cSSascha Wildner     __asm shr    edx, cl        \
2453c639e0cSSascha Wildner     __asm mov    n_hi, edx      \
2463c639e0cSSascha Wildner     __asm mov    n_lo, eax      \
2473c639e0cSSascha Wildner }
2483c639e0cSSascha Wildner #endif
2493c639e0cSSascha Wildner 
2503c639e0cSSascha Wildner #ifndef ACPI_SHIFT_RIGHT_64
2510d02842fSSascha Wildner #define ACPI_SHIFT_RIGHT_64(n_hi, n_lo) \
2520d02842fSSascha Wildner {                           \
2530d02842fSSascha Wildner     __asm shr    n_hi, 1    \
2540d02842fSSascha Wildner     __asm rcr    n_lo, 1    \
2550d02842fSSascha Wildner }
2560d02842fSSascha Wildner #endif
257277350a0SSascha Wildner #endif
2580d02842fSSascha Wildner 
2597622fe52SSascha Wildner /* warn C4001: use of slash-slash comments */
2607622fe52SSascha Wildner /* NOTE: MSVC 2015 headers use these extensively */
2617622fe52SSascha Wildner #pragma warning(disable:4001)
2627622fe52SSascha Wildner 
2630d02842fSSascha Wildner /* warn C4100: unreferenced formal parameter */
2640d02842fSSascha Wildner #pragma warning(disable:4100)
2650d02842fSSascha Wildner 
2660d02842fSSascha Wildner /* warn C4127: conditional expression is constant */
2670d02842fSSascha Wildner #pragma warning(disable:4127)
2680d02842fSSascha Wildner 
2690d02842fSSascha Wildner /* warn C4706: assignment within conditional expression */
2700d02842fSSascha Wildner #pragma warning(disable:4706)
2710d02842fSSascha Wildner 
2720d02842fSSascha Wildner /* warn C4131: uses old-style declarator (iASL compiler only) */
2730d02842fSSascha Wildner #pragma warning(disable:4131)
2740d02842fSSascha Wildner 
2757622fe52SSascha Wildner /* warn C4131: uses old-style declarator (iASL compiler only) */
2767622fe52SSascha Wildner #pragma warning(disable:4459)
2777622fe52SSascha Wildner 
2784758d649SSascha Wildner /* warn c4200: allow flexible arrays (of zero length) */
2794758d649SSascha Wildner #pragma warning(disable:4200)
2804758d649SSascha Wildner 
2810d02842fSSascha Wildner #if _MSC_VER > 1200 /* Versions above VC++ 6 */
2820d02842fSSascha Wildner #pragma warning( disable : 4295 ) /* needed for acpredef.h array */
2830d02842fSSascha Wildner #endif
2840d02842fSSascha Wildner 
2857622fe52SSascha Wildner /*
2867622fe52SSascha Wildner  * MSVC 2015+
2877622fe52SSascha Wildner  */
2887622fe52SSascha Wildner 
2897622fe52SSascha Wildner  /* warn C4459: xxxx (identifier) hides global declaration */
2907622fe52SSascha Wildner #pragma warning(disable:4459)
2917622fe52SSascha Wildner 
2927622fe52SSascha Wildner 
293267c04fdSSascha Wildner /* Debug support. */
2940d02842fSSascha Wildner 
2950d02842fSSascha Wildner #ifdef _DEBUG
2960d02842fSSascha Wildner 
2970d02842fSSascha Wildner /*
2980d02842fSSascha Wildner  * Debugging memory corruption issues with windows:
2990d02842fSSascha Wildner  * Add #include <crtdbg.h> to accommon.h if necessary.
3000d02842fSSascha Wildner  * Add _ASSERTE(_CrtCheckMemory()); where needed to test memory integrity.
3010d02842fSSascha Wildner  * This can quickly localize the memory corruption.
3020d02842fSSascha Wildner  */
3030d02842fSSascha Wildner #define ACPI_DEBUG_INITIALIZE() \
30479eafdd7SSascha Wildner     _CrtSetDbgFlag (\
30579eafdd7SSascha Wildner         _CRTDBG_CHECK_ALWAYS_DF | \
30679eafdd7SSascha Wildner         _CRTDBG_ALLOC_MEM_DF | \
30779eafdd7SSascha Wildner         _CRTDBG_DELAY_FREE_MEM_DF | \
30879eafdd7SSascha Wildner         _CRTDBG_LEAK_CHECK_DF | \
30979eafdd7SSascha Wildner         _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG));
31079eafdd7SSascha Wildner 
31179eafdd7SSascha Wildner #if 0
31279eafdd7SSascha Wildner /*
31379eafdd7SSascha Wildner  * _CrtSetBreakAlloc can be used to set a breakpoint at a particular
31479eafdd7SSascha Wildner  * memory leak, add to the macro above.
31579eafdd7SSascha Wildner  */
31679eafdd7SSascha Wildner Detected memory leaks!
31779eafdd7SSascha Wildner Dumping objects ->
31879eafdd7SSascha Wildner ..\..\source\os_specific\service_layers\oswinxf.c(701) : {937} normal block at 0x002E9190, 40 bytes long.
31979eafdd7SSascha Wildner  Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
32079eafdd7SSascha Wildner 
32179eafdd7SSascha Wildner _CrtSetBreakAlloc (937);
32279eafdd7SSascha Wildner #endif
32379eafdd7SSascha Wildner 
3240d02842fSSascha Wildner #endif
3250d02842fSSascha Wildner 
32625ca8c79SSascha Wildner #if _MSC_VER > 1200 /* Versions above VC++ 6 */
32725ca8c79SSascha Wildner #define COMPILER_VA_MACRO               1
32825ca8c79SSascha Wildner #else
32925ca8c79SSascha Wildner #endif
33025ca8c79SSascha Wildner 
331277350a0SSascha Wildner /* Begin standard headers */
332277350a0SSascha Wildner 
333277350a0SSascha Wildner /*
334277350a0SSascha Wildner  * warn C4001: nonstandard extension 'single line comment' was used
335277350a0SSascha Wildner  *
336277350a0SSascha Wildner  * We need to enable this for ACPICA internal files, but disable it for
337277350a0SSascha Wildner  * buggy MS runtime headers.
338277350a0SSascha Wildner  */
339277350a0SSascha Wildner #pragma warning(push)
340277350a0SSascha Wildner #pragma warning(disable:4001)
341277350a0SSascha Wildner 
3420d02842fSSascha Wildner #endif /* __ACMSVC_H__ */
343