Commit b9fc547
Rename bswap32/bswap64 to mmdb_bswap32/mmdb_bswap64
On macOS 26, sys/endian.h defines bswap32 and bswap64 as macros.
Since maxminddb.h includes sys/endian.h when available, our static
inline function declarations collide with those macros, causing a
compilation failure.
Rename to mmdb_bswap32/mmdb_bswap64 to avoid the namespace collision
entirely. These are internal static functions so the rename is safe.
Fixes #419
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 115ce93 commit b9fc547
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1804 | 1804 | | |
1805 | 1805 | | |
1806 | 1806 | | |
1807 | | - | |
| 1807 | + | |
1808 | 1808 | | |
1809 | 1809 | | |
1810 | 1810 | | |
| |||
1815 | 1815 | | |
1816 | 1816 | | |
1817 | 1817 | | |
1818 | | - | |
| 1818 | + | |
1819 | 1819 | | |
1820 | 1820 | | |
1821 | 1821 | | |
| |||
1837 | 1837 | | |
1838 | 1838 | | |
1839 | 1839 | | |
1840 | | - | |
| 1840 | + | |
1841 | 1841 | | |
1842 | 1842 | | |
1843 | 1843 | | |
| |||
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
1855 | | - | |
| 1855 | + | |
1856 | 1856 | | |
1857 | 1857 | | |
1858 | 1858 | | |
| |||
0 commit comments