Tidy on WIN32 but not MSVC
"Parsons, Rick" <[email protected]> Mon, 9 Oct 2006 08:48:05 +0100
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <C24D340766E5E647AF6A0A1AC119C5D6011B5FB9@ukrbm201.emea.corp.eds.com> |
When compiling tidy (current CVS) on my system (WIN32 under MINGW) I get a problem with module mappedio.c. It objects to the i64 suffixes in lines 278 and 281. Looking at the module, the cause seems to be that; if the platform is _WIN32 (which it is) then it assumes that the compiler is MSCV (which it is not, it uses GNUC). I have had an inexpert go at hacking it and the desired result was obtained by adding near the start the lines #if defined (__GNUC__) #define _MSC_VER 1301 #endif I put them after the #endif on line 88. This also has the desired effect of suppressing the #pragma warning on line 93. Now this is clearly not ideal, but it achieved the desired result, and the binary runs all the test cases. Perhaps a seasoned developer could do a better job of it. I suspect that what is needed is a modification to platform.h to create a dedicated meta variable. For reference I am running MINGW 3.1.0-1 with gmake 3.80.0-3. This includes gcc v3.2.3. MINGW is a developer environment, but does not require a special runtime environment for the generated code. -- Cheers, Rick Parsons Bristol, England ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV