Ulrich Drepper wrote this code initially.
Bruno Haible added the support for macOS and Windows.
