readme.txt
1/*
2 * Generation of ACPICA with MS Visual Studio 2008
3 */
4Last update 9 December 2013.
5
6
7The Visual Studio project file (for Visual Studio 2008)
8appears in this directory:
9
10 generate/msvc9/AcpiComponents.sln
11
12ACPICA generates with all MS C language extensions disabled, since the
13code is ANSI conformant and is meant to be highly portable.
14
15There are a couple of include files in MS Visual Studio 2008 that
16unfortunately contain non-ANSI "//" style comments. These will be flagged
17as warnings since language extensions are disabled.
18
19The VC include files are under one of these directories:
20
21 \Program Files\Microsoft Visual Studio 9.0\VC\include
22 \Program Files (x86)\Microsoft Visual Studio 9.0\VC\include
23
24To eliminate these warnings, modify each of these include files:
25
26 sal.h
27 stdlib.h
28
29For each file, add this statement to the start of the file:
30
31 #pragma warning( disable : 4001 ) /* no warning about "//" comments */
32
33and add this statement to the end of the file:
34
35 #pragma warning( default : 4001 )
36
37For stdlib.h, you may also need to disable warning 4001 again before this line, near line 774:
38
39 #pragma warning (disable:6540) // the functions below have declspecs in their declarations in the windows headers, causing PREfast to fire 6540 here
40
41
42Note: you may have to change the permissions on these files in order
43to write to them.
44