Porting/Macros

From RCS Wiki
Revision as of 11:04, 13 September 2023 by Fitzsim (talk | contribs)
Jump to navigation Jump to search

Some projects have been ported to Apple ppc64. In that case, they may test macros like this:

#if defined(__ppc64__)<br> #endif

GCC does not define __ppc64__ (lowercase). It defines __PPC64__ (uppercase). To make the above code also build on Debian ppc64le or ppc64 (big endian) change the above code to:

#if defined(__ppc64__) || defined(__PPC64__)<br> #endif