Summary: | get rid of prewin.h / postwin.h wrapper headers | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Michael Stahl <mst.fdo> |
Component: | Libreoffice | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | libreoffice |
Version: | Inherited From OOo | ||
Hardware: | Other | ||
OS: | Windows (All) | ||
Whiteboard: | EasyHack DifficultyBeginner SkillCpp TopicCleanup target:4.4.0 | ||
i915 platform: | i915 features: |
Description
Michael Stahl
2014-08-13 20:12:30 UTC
One note, that I sadly think needs to be spelled out: Please don't attempt to do this unless you actually have Windows, Visual Studio, etc and are able to build LibreOffice on Windows. Don't submit changes without verifying yourself that they don't break the compilation. Tor Lillqvist committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=a8669b56b194a7cd6da771dfb9904710da24c0b4 fdo#82580: Win32 GetObject() simplification The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. (In reply to comment #0) > 2) in some cases it can be avoided to have the Win32 type > and the LO type visible in the same LO source file > by not including both the defining LO and Win32 headers Note, that this could be complicated, because we (mostly) use precompiled headers on Windows, which include nearly all headers needed by a module. See for example oox/inc/pch/precompiled_oox.hxx, which includes all headers from the oox module. And thus avoiding to include one file could be problematic. Personally I think we should do what Cygwin have done and create our own copy of the win32 header that only contains the definitions we need, thus minimizing the odds of conflict. That is madness. We can't cross-compile a complete LibreOffice because the reverse-engineered headers provided by mingw-w64 are incomplete. And those headers have a very long history. So you expect us to be able to create something similar, and in a legally valid clean-room fashion, just like that? |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.