Re: CMake on Unix
Ivan Zhakov <[email protected]> Mon, 18 May 2026 22:27:12 +0200
| Newsgroups | gmane.comp.apache.apr.devel |
|---|---|
| Message-ID | <CAPZho0_M2nch+ecugF1wJjvkmb7Z9ZHmxKaqQ6Ogr2zCzo8vtA@mail.gmail.com> |
--000000000000ef684e06521d6348 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 18 May 2026 at 21:24, Timofei Zhakov <[email protected]> wrote: > On Mon, May 18, 2026 at 5:22=E2=80=AFPM Branko =C4=8Cibej <[email protected]= rg> wrote: > >> On 18. 5. 26 17:04, Ivan Zhakov wrote: >> >> > [..] > Yes, especially because the Unix and Win32 versions share a lot of things > in common but sometimes need to do it in a slightly different way. > > Also what do you guys think about the fact that Win32 apr.h includes > windows.h? It seems odd to me. APR promises to eliminate platform > dependence by wrapping everything into POSIX-ish style API without extra > unneeded junk and then all high level code essentially has GetLastError i= n > the scope. I think if one wants to explicitly use win32 API, they should > include those headers themselves. > It's a good question. I agree that apr.h should not depend on system headers like Windows.h. But one reason that Windows error codes are used in apr_errno.h. --=20 Ivan Zhakov --000000000000ef684e06521d6348 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr">On Mon, 18 May 2026 at 21:24, Timofei Zha= kov <<a href=3D"mailto:[email protected]">[email protected]</a>> wrot= e:</div><div class=3D"gmail_quote gmail_quote_container"><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div dir= =3D"ltr">On Mon, May 18, 2026 at 5:22=E2=80=AFPM Branko =C4=8Cibej <<a h= ref=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>> = wrote:</div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" st= yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd= ing-left:1ex"> =20 =20 =20 <div><div>On 18. 5. 26 17:04, Ivan Zhakov wrote:<br> </div>=C2=A0</div></blockquote></div></div></div></blockquote><div>[..]= =C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0= .8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"l= tr"><div dir=3D"ltr"><div class=3D"gmail_quote"><div></div><div>Yes, especi= ally because the Unix and Win32 versions share a lot of things in common bu= t sometimes need to do it in a slightly different way.</div><div><br></div>= <div>Also what do you guys think about the fact that Win32 apr.h includes w= indows.h? It seems odd to me. APR promises to eliminate platform dependence= by wrapping everything into POSIX-ish style API without extra unneeded jun= k and then all high level code essentially has GetLastError in the scope. I= think if one wants to explicitly use win32 API, they should include those = headers themselves.</div></div></div></div></blockquote><br></div><div clas= s=3D"gmail_quote gmail_quote_container">It's a good question. I agree t= hat apr.h should not depend on system headers like Windows.h. But one reaso= n that Windows error codes are used in apr_errno.h.</div><div class=3D"gmai= l_quote gmail_quote_container"><br></div><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Ivan Zhakov</= div></div> --000000000000ef684e06521d6348--