in my good old FC4 days the following function/calculation I got from JonnyW was working perfect!!

byte = (byte >> 7) & 1 | (byte >> 5) & 2 | (byte >> 3) & 4 | (byte >> 1) & 8 | (byte << 1) & 0x10 | (byte << 3) & 0x20 | (byte << 5) & 0x40| (byte << 7) & 0x80
The purpose was to change the bit order inside a byte from LSB to MSB or vice versa.
Unfortunately the ESP32 compiler is not accepting this and the build failed.
Any ideas for a solution??
BR
Dirk