Skip to content

Conversation

@rakuco
Copy link
Contributor

@rakuco rakuco commented Mar 2, 2014

The commit in this pull request adds a missing locale.h include that was being relied upon implicit before. It made the build fail on platforms such as FreeBSD 10, which use libc++ instead of libstdc++ by default.

@rakuco
Copy link
Contributor Author

rakuco commented Mar 2, 2014

(Sorry for the garbled initial pull request description, I've fixed it now)

@mnogu
Copy link
Member

mnogu commented Mar 2, 2014

I prefer "clocale" to "locale.h" in C++ source files
although old uim source files for Qt 3 include "locale.h".
If builds fail with "clocale", you may want to replace "setlocale()" with "std::setlocale()".

* qt4/immodule/plugin.cpp
  - Stop relying on implicit includes that may not always work and
    explicitly include <clocale> for the setlocale(3) call.
@rakuco
Copy link
Contributor Author

rakuco commented Mar 2, 2014

Fine by me. I've updated the include in the pull request.

mnogu added a commit that referenced this pull request Mar 2, 2014
qt4 immodule: Add missing <clocale> include
@mnogu mnogu merged commit bece5e0 into uim:master Mar 2, 2014
@mnogu
Copy link
Member

mnogu commented Mar 2, 2014

Merged. Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants