[PATCH] Compilation patch for inttypes.h and cygwin
Hi, The problem: cygwin doesn't provide inttypes.h solution for cpuinfo: cpuinfo doesn't even need inttypes.h in cygwin the solution: inttypes.h is always included with #include <inttypes.h> which means, search the common dir (/usr/include) first, THEN search local dir. so we'll just supply a local inttypes.h in the main directory and make sure it only applies to cgywin and can be included from everywhere. Comments? mfG Max Berger ICQ: 44986764 e-mail: max.berger@xslt.de -- PGP/GnuPG ID: E81592BC Print: F489F8759D4132923EC4 BC7E072AB73AE81592BC SysAdmin: http://www7.in.tum.de/ SyncML: http://libsyncml.sourceforge.net XSLT: http://www.xslt.de Mail written on Linux: http://www.kerneli.org
On Thursday 01 August 2002 00:35, Max Berger wrote:
Hi,
The problem: cygwin doesn't provide inttypes.h
solution for cpuinfo: cpuinfo doesn't even need inttypes.h in cygwin
the solution: inttypes.h is always included with #include <inttypes.h>
which means, search the common dir (/usr/include) first, THEN search local dir. so we'll just supply a local inttypes.h in the main directory and make sure it only applies to cgywin and can be included from everywhere.
Comments? yes, I once did exactly the same, but then I decided to simply put the cygwin_inttypes.h into /usr/include as it needs a lot less changes, especially not to external libs' makefiles.
mfG
Max Berger
-- Best Regards, Atmos ____________________________________________ - MPlayer Developer - http://mplayerhq.hu/ - ____________________________________________
participants (2)
-
Felix Buenemann -
Max Berger