On 8/1/26 01:08, Bruno Haible via Gnulib discussion list wrote:
- char *ptr_aligned = (char *) ptr - ((uintptr_t) ptr & (pagesize -
1));
+ char *ptr_aligned;
+ #if defined __FILC__
+ ptr_aligned = (char *) ptr - ((uintptr_t) ptr & (pagesize - 1));
+ #else
+ ptr_aligned = (char *) ((uintptr_t) ptr & ~(pagesize - 1));
+ #endif
No big deal, but in cases like these (which I ran into reasonably often
when I was porting Emacs to an older-style runtime checker) I find it
easier just to switch to the __FILC__ style. It's easier to maintain one
line than six, and the __FILC__ style works everywhere and is arguably
clearer anyway.