problems with type redefenition

  • From: Имя Фамилия <combatwikinger@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 21 Oct 2019 21:40:33 +0300

I have some problems when i compiling luajit 2.0.5 on visual studio 2012
and above. When i include lj_obj.h in my some cpp i get an compiler error:

Error C2371 'int8_t': redefinition; different basic types

The thing is int*_t types declared in lj_def.h, but if _MSC_VER > 1600 then
we have stdint.h in msvc, hence the i get those errors.

For instance, #if defined(_MSC_VER) && (_MSC_VER < 1700) is solved my
problem, it's correct solution?

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Без
вирусов. www.avast.ru
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Other related posts:

  • » problems with type redefenition - Имя Фамилия