mirror of
https://github.com/acpica/acpica/
synced 2025-02-05 16:14:06 +03:00
Windows tool generation: Disable all MS extensions for portability.
It takes some effort to disable the MS language extensions because of bugs in the MS headers, and the MS remapping of the low I/O functions (open, read, write, etc.)
This commit is contained in:
parent
b12fcf75c0
commit
8323ad5fb8
@ -60,7 +60,7 @@
|
||||
BrowseInformation="1"
|
||||
WarningLevel="4"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="4"
|
||||
DebugInformationFormat="3"
|
||||
CallingConvention="1"
|
||||
CompileAs="1"
|
||||
/>
|
||||
@ -234,6 +234,7 @@
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
@ -256,6 +257,7 @@
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
@ -278,6 +280,7 @@
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
@ -303,6 +306,7 @@
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
|
@ -51,7 +51,7 @@
|
||||
ExceptionHandling="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
DisableLanguageExtensions="false"
|
||||
DisableLanguageExtensions="true"
|
||||
PrecompiledHeaderFile=".\AcpiSrcDebug\AcpiSrc.pch"
|
||||
AssemblerListingLocation=".\AcpiSrcDebug\"
|
||||
ObjectFile=".\AcpiSrcDebug\"
|
||||
@ -157,7 +157,7 @@
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="0"
|
||||
EnableFunctionLevelLinking="true"
|
||||
DisableLanguageExtensions="false"
|
||||
DisableLanguageExtensions="true"
|
||||
PrecompiledHeaderFile=".\AcpiSrc\AcpiSrc.pch"
|
||||
AssemblerListingLocation=".\AcpiSrc\"
|
||||
ObjectFile=".\AcpiSrc\"
|
||||
|
@ -60,7 +60,7 @@
|
||||
BrowseInformation="1"
|
||||
WarningLevel="4"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="4"
|
||||
DebugInformationFormat="3"
|
||||
CallingConvention="1"
|
||||
CompileAs="1"
|
||||
/>
|
||||
|
@ -116,15 +116,27 @@
|
||||
#ifndef __ACMSVC_H__
|
||||
#define __ACMSVC_H__
|
||||
|
||||
/* Map low I/O functions for MS */
|
||||
|
||||
/*
|
||||
* Map low I/O functions for MS. This allows us to disable MS language
|
||||
* extensions for maximum portability.
|
||||
*/
|
||||
#define open _open
|
||||
#define read _read
|
||||
#define write _write
|
||||
#define close _close
|
||||
#define stat _stat
|
||||
#define fstat _fstat
|
||||
#define mkdir _mkdir
|
||||
#define strlwr _strlwr
|
||||
#define O_RDONLY _O_RDONLY
|
||||
#define O_BINARY _O_BINARY
|
||||
#define O_CREAT _O_CREAT
|
||||
#define O_WRONLY _O_WRONLY
|
||||
#define O_TRUNC _O_TRUNC
|
||||
#define S_IREAD _S_IREAD
|
||||
#define S_IWRITE _S_IWRITE
|
||||
#define S_IFDIR _S_IFDIR
|
||||
|
||||
/* Eliminate warnings for "old" (non-secure) versions of clib functions */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user