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

mingw: safeguard against compiling with -DUNICODE #1958

Merged
merged 3 commits into from
Nov 30, 2018

Conversation

dscho
Copy link
Member

@dscho dscho commented Nov 27, 2018

While technically not necessary, it is nice to have code that compiles both with and without the UNICODE constant defined.

Practically, this means that we have to use the *A() and *W() variants of the Win32 API functions explicitly.

@dscho dscho requested a review from jamill November 27, 2018 22:36
compat/poll/poll.c Outdated Show resolved Hide resolved
For many Win32 functions, there actually exist two variants: one with
the `A` suffix that takes ANSI parameters (`char *` or `const char *`)
and one with the `W` suffix that takes Unicode parameters (`wchar_t *`
or `const wchar_t *`).

Let's be precise what we want to use.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
… container

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho merged commit 9c0554e into git-for-windows:master Nov 30, 2018
@dscho dscho deleted the ansi-unicode branch November 30, 2018 08:45
dscho added a commit to dscho/git that referenced this pull request Nov 30, 2018
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit to dscho/git that referenced this pull request Nov 30, 2018
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit to dscho/git that referenced this pull request Dec 1, 2018
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit to dscho/git that referenced this pull request Dec 9, 2018
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit to dscho/git that referenced this pull request Dec 15, 2018
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit to dscho/git that referenced this pull request Feb 7, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit to dscho/git that referenced this pull request Feb 7, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 14, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 14, 2019
mingw: safeguard against compiling with `-DUNICODE`
git-for-windows-ci pushed a commit that referenced this pull request May 19, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit to dscho/git that referenced this pull request May 19, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 19, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 19, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 21, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 21, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 21, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 21, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 22, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 22, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 22, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 22, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 25, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 25, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 25, 2019
mingw: safeguard against compiling with `-DUNICODE`
dscho added a commit that referenced this pull request May 25, 2019
mingw: safeguard against compiling with `-DUNICODE`
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