]> git.ipfire.org Git - thirdparty/openldap.git/commit
ITS#9925 Fix some ancient #ifdef checks
authorConnor Smith <connor.smith@hitachivantara.com>
Mon, 3 Oct 2022 10:11:10 +0000 (11:11 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 13 Oct 2022 03:37:47 +0000 (03:37 +0000)
commit6489b6a85743d9e3aaa3e0f003f2187f9c865e78
treecc9951c30780d80debca240a3f4b9bd251752987
parent13d9c925dd8bed3c6b54f49bf144482ff407254f
ITS#9925 Fix some ancient #ifdef checks

Use #elif defined(...) for HAVE_WINSOCK and MACOS. All other instances
of these macros use #ifdef or similar. A compiler may warn about them
not being defined.

In libraries/liblber/sockbuf.c, (DOS && PCNFS) and (DOS && NCSA) were
replaced with HAVE_PCNFS and HAVE_NCSA, respectively. It seems logical
to do the same at the only remaining occurrence of DOS, PCNFS, and NCSA.

Use #if HARDCODE_DATA consistently, replacing two instances of #ifdef.
HARDCODE_DATA is always defined, and this way you can set HARDCODE_DATA
to 0 and have it work, rather than it going down the wrong branch and
failing in these two cases.
include/ac/socket.h
libraries/liblunicode/ucdata/ucgendat.c