Correct test for MSVC in wxStackWalker::Walk()
Use "#if defined" instead of "#if" for the check for __VISUALC__ added in
e405bf1607
to avoid -Wundef warnings when
compiling this code with gcc.
This commit is contained in:
@@ -343,7 +343,7 @@ void wxStackWalker::Walk(size_t skip, size_t maxDepth)
|
|||||||
ctx.Eip = regEip;
|
ctx.Eip = regEip;
|
||||||
ctx.Esp = regEsp;
|
ctx.Esp = regEsp;
|
||||||
ctx.Ebp = regEbp;
|
ctx.Ebp = regEbp;
|
||||||
#elif __VISUALC__
|
#elif defined(__VISUALC__)
|
||||||
__asm
|
__asm
|
||||||
{
|
{
|
||||||
Here:
|
Here:
|
||||||
|
Reference in New Issue
Block a user