Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Windows build when UNICODE macro is specified. #2

Merged
merged 1 commit into from May 8, 2015
Merged

Fix Windows build when UNICODE macro is specified. #2

merged 1 commit into from May 8, 2015

Conversation

yukawa
Copy link
Contributor

@yukawa yukawa commented May 3, 2015

When UNICODE macro is specified, CreateFile is mapped to
CreateFileW rather than CreateFileA, which results in a
build error due to incompatible types.

We can support both cases by using CreateFileA explicitly.

When UNICODE macro is specified, CreateFile is mapped to
CreateFileW rather than CreateFileA, which results in a
build error due to incompatible types.

We can support both cases by using CreateFileA explicitly.
taku910 added a commit that referenced this pull request May 8, 2015
Fix Windows build when UNICODE macro is specified.
@taku910 taku910 merged commit fab2f5c into taku910:master May 8, 2015
@yukawa yukawa deleted the fix_win_unicode_build branch May 9, 2015 23:42
yukawa added a commit to google/mozc that referenced this pull request Sep 19, 2015
With following commits, we can now build Zinnia from source even on
Windows and Ubuntu 14.04.
 - taku910/zinnia#2
 - taku910/zinnia#3
 - taku910/zinnia#4
Thus we don't need to conditionally disable Zinnia only on Windows
anymore.

'--use_zinnia' option in build_mozc.py can also be removed.  To simplify
the DEPS rule and improve the code/test coverage this CL also updates
gyp/common.gypi so that Zinnia will be compiled from source even on
Linux by default.  Users and packagers are still able to use
system-installed Zinnia by manually specifying following GYP_DEFINES
environment variable as follows.
  GYP_DEFINES="use_libzinnia=1".

With this CL, we no longer need subversion to check out OSS Mozc.
Closes #299.

No user-visible behavior change is intended with this CL.

BUG=#299
TEST=unittest
REF_BUG=6443612,23909405
REF_CL=102630042,103073294
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.

None yet

2 participants