wuhailinjerry / edb-debugger

Automatically exported from code.google.com/p/edb-debugger
GNU General Public License v2.0
0 stars 0 forks source link

Compilation fails with Visual Studio 2010 #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This bug actually applies to edisassm but since it affects edb as well I 
figured I'd put it here.

edisassm_types.h defines types from <cstdint> which were missing in MS C++ 
compilers before VS 2010.
The code only checks for the presence of _MSC_VER, while it should check if 
_MSC_VER < 1600.
VC++ then aborts compilation, complaining about redefinition of int8_t.

So the simple fix is replacing
#ifdef _MSC_VER
with
#if defined(_MSC_VER) && _MSC_VER < 1600

Original issue reported on code.google.com by evan.teran on 3 Oct 2012 at 3:22

GoogleCodeExporter commented 9 years ago
Fixed in the SVN, thanks!

Original comment by evan.teran on 3 Oct 2012 at 5:16