Adriaan van Os a écrit:
Does GPC on other platforms predefine things like ?
__OS_DOS__ _WIN32 __sparc__ __CYGWIN32__ __CYGWIN__ __unix__ __EMX__
I am a bit puzzled. I had expected that gpc on powerpc-apple has the same predefines as gcc (see gcc/rs6000/config/darwin.h)
__APPLE__ __MACH__ __POWERPC__ __ppc__
But gpc doesn't, unless I missed something.
There is a problem for gcc version > 3.2.3 There has been a change in programming strategy for CPP_PREDEFINES starting with gcc 3.3.x This change has not been mirrored yet into gpc, so that all these predefines no more exist in gpc. The best way up to now (for djgpp, mingw, cygwin ...) where this is important is to stick to gcc 3.2.3 as backend. AFAIK this has no drawback for pascal programs, even when calling gcc procedures. Many gcc changes have importance for C C++ programs and are only nuisances in pascal. The reason to follow gcc releases is only that new systems have no reason to provide old gcc versions.
Maurice