From: Yegor D. <yeg...@gm...> - 2014-09-19 17:18:22
|
On Sat, Sep 20, 2014 at 12:22:24AM +0800, Nguyen Anh Quynh wrote: > i think the current setup is standard method. projects using Capstone must > set the including paths properly with -I, which is trivial. Which directory you mean one should write after -I? Writing -Icapstone/include is somewhat ugly, because it makes headers with relatively widespread names like arm.h become available as <arm.h>. If every library would require doing so, there would be name clashes and surprises. > > 3. MSVC 2010 is famous for not providing <inttypes.h>. Is there a > > workaround planned to make Capstone compilable by MSVC 2010? > hmm, perhaps we should use msinttypes when MSVC version < vs2010? > something like: > > #if defined(_MSC_VER) && _MSC_VER < 1700 > #include "msvc/inttypes.h" > #endif Makes sense. I would write a special header file that includes either one or the other inttypes.h, depending on _MSC_VER. > > 4. Any plans about fixing warnings produced by GCC/Clang with -Wall? > > There are tons of complaints about unused function arguments. > can you post all the warnings here? Sorry, I really meant -Wextra. A build log is attached. -- Yegor Derevenets |