From: Claudio V. C. <cv...@us...> - 2001-12-29 22:28:03
|
> -----Original Message----- > From: Dmitri Zakharov [mailto:dz...@mi...] > Sent: Sábado 29 de Diciembre de 2001 6:13 > > Hello Claudio, > > Is it interesting for you. If not I am apologize. > I met an difficulty in compilation winnt.c by MSVC 5. > > build_lib_PROD_679.log: > > winnt.c(915) : error C2065: 'ULONGLONG' : undeclared identifier Hi, Dmitry, in the future, post those issues directly to Firebird-devel, please. I'm including the list in the discussion. More comments below: > Does a statement: > > #define ULONGLONG LONGLONG > > mend a situation in a correct way? > I think it is an unsigned int64. > Seems it works quite smooth. This is what I found in my F:\Languages\Microsoft Visual Studio\VC98\Include\winnt.h header file that comes with MSVC 6: typedef __int64 LONGLONG; typedef unsigned __int64 ULONGLONG; So basically you are changing the definition from unsigned to signed. Can you try something like #if !defined(_ULONGLONG) typedef unsigned LONGLONG ULONGLONG; #endif and see if it's accepted? I don't know if MSVC5 has __int64 defined internally, because I found that as a last resort, when the other alternatives fail, winnt.h tries to define this: typedef double LONGLONG; typedef double ULONGLONG; and in this case, the typedef shown above would fail. > PS: Now I am almost sure Borland's team compiled their IB by MSVC 5. > (according to the binaries output length) It may be the case, but I don't know what they did in such case if it's not in the source code. C. |