As noted on ticket [#2098], the dirname() function pollutes the namespace, by virtue of a gratuitous reference within the runtime startup code; it should move to the __mingw_ namespace, to avoid this.
For symmetry, its libgen sibling, basename() should move with it.
Issues: #2098
Issues: #2111
Issues: #2113
I've attached a patch to address this. It also reinstates the missing author attribution info, pre-empting addition to [#2111].
Related
Issues: #2111
Should have added: attached patch is not independent; it follows the series:--
Related
Issues:
#2098Issues: #2106