#271 All lowercase headers cause problems on unix

pending-wont-fix
nobody
header (101)
5
2012-02-26
2012-02-15
No

Mingw64 seems to have all headers lowercase. Even where windows sdk have headers with some capital letters. Like Psapi.h or TlHelp32.h.

Particularly this breaks tcmalloc crosscompilation for win32/64 under linux.

Discussion

  • Jonathan Yong
    Jonathan Yong
    2012-02-21

    This is going to be very hard to fix, due to the amount of legacy involved. I'm not even sure how to go about this.

    A quick workaround is to use lowercase includes instead.

     
  • Will it be legal if I use ls -lR - like thing on windows sdk to find out true case of includes and fix it by script?

    I suspect one issue could be making sure svn handles such renames properly.

     
  • Ozkan Sezer
    Ozkan Sezer
    2012-02-21

    Well, no one can and should fix this: that tcmalloc project and/or any others must include headers using lowercase names. Jon, Kai: I suggest that this be a WONTFIX.

     
  • Well mingw (old one) currently works with cross-building. So renaming headers is the way to go.

     
  • Ozkan Sezer
    Ozkan Sezer
    2012-02-21

    mingw.org has *all* of its headers lowercase, therefore what you say is not possible unless you manually changed cases of their headers.

     
  • You're right Ozkan. Which is still a bit weird.

     
  • Kai Tietz
    Kai Tietz
    2012-02-26

    • status: open --> pending-wont-fix
     
  • Kai Tietz
    Kai Tietz
    2012-02-26

    Yes, we did named headers in a canonical way. On windows it doesn't matter normally, how headers are capitilized or not. We won't fix that, as it leads on other ventures to more issues.
    The common standard here is to use on mingw lower-case names for headers.