|
From: | Philippe Ribet |
Subject: | Re: [Tinycc-devel] Current cvs does not build (_WIN32 missing) Here is a fix. |
Date: | Thu, 29 Nov 2007 22:50:35 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 |
KHMan wrote:
I don't know if it helps, but here is the definition implemented for SmartEiffel compiler:Detlef Riekenberg wrote:A current commit added "normalize_slashes()", but this call in tcc_open() was not protected with _WIN32 WIN32 is not defined on all Windows Compilers (PellesC as example), so i decided to use "_WIN32", as documented on msdn: ( http://msdn2.microsoft.com/en-us/library/b0084kay(VS.80).aspx )I'll await comments. SDL does it like this: #if defined(WIN32) || defined(_WIN32) #undef __WIN32__ #define __WIN32__ 1 #endif Anyone wants to contribute a definitive version for tcc? :-)
#if !defined(WIN32) && \ (defined(WINVER) || defined(_WIN32_WINNT) || defined(_WIN32) || \ defined(__WIN32__) || defined(__TOS_WIN__) || defined(_MSC_VER)) # define WIN32 1 #endifIn the early days of tcc, Fabrice Bellard made many changes to improve the compiler so that I can use it with SmartEiffel compiler. I was very pleased to use it some years, it is so quick! Unfortunately, it does not work anymore for two years. I'm happy to see activity again on this list and on the tcc code side.
Have a nice day, -- Philippe Ribet SmartEiffel: one methodoology, one language, highest quality kept secret. Visit http://smarteiffel.loria.fr
[Prev in Thread] | Current Thread | [Next in Thread] |