]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ACPICA: MSVC: Fix inclusion order issue of <crtdbg.h>
authorLv Zheng <lv.zheng@intel.com>
Thu, 23 Jul 2015 04:53:42 +0000 (12:53 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 Jul 2015 21:09:08 +0000 (23:09 +0200)
commit5a4f0693a586d73a65ccc7959e81a5618de265fe
treeb9579dd44f3a1a0a170411d77b98a10dfed88153
parent53d9edce56de3eb495a3eef77e973e3ea014d999
ACPICA: MSVC: Fix inclusion order issue of <crtdbg.h>

ACPICA commit 49c6a6517a906900e9baa51ad5859beeb8a3089f

The following error logs can be seen for calloc/free/malloc/realloc that
defined in the stdlib.h:
...\stdlib.h(281) : error C2059: syntax error : ','
...\stdlib.h(281) : error C2143: syntax error : missing ')' before 'constant'
...\stdlib.h(281) : error C2143: syntax error : missing '{' before 'constant'
...\stdlib.h(281) : error C2059: syntax error : '<Unknown>'
...\stdlib.h(281) : error C2059: syntax error : ')'

This is caused by the wrong inclusion order of stdlib.h/crtdbg.h introduced
in acenv.h. This patch fixes this breakage. Lv Zheng.

This patch doesn't affect Linux kernel.

Link: https://github.com/acpica/acpica/commit/49c6a651
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/platform/acenvex.h
include/acpi/platform/acmsvcex.h [new file with mode: 0644]
include/acpi/platform/acwinex.h [new file with mode: 0644]