Skip to content

Do not let StrCat be renamed to lstrcatA#546

Merged
dmah42 merged 1 commit intogoogle:masterfrom
winksaville:Do-not-let-StrCat-be-renamed-to-lstrcatA
Mar 6, 2018
Merged

Do not let StrCat be renamed to lstrcatA#546
dmah42 merged 1 commit intogoogle:masterfrom
winksaville:Do-not-let-StrCat-be-renamed-to-lstrcatA

Conversation

@winksaville
Copy link
Copy Markdown
Contributor

On Windows the Shlwapi.h file has a macro:

#define StrCat lstrcatA

And benchmark/src/string_util.h defines StrCat and it is renamed to
lstrcatA if we don't undef the macro in Shlwapi.h. This is an innocuous
bug if string_util.h is included after Shlwapi.h, but it is a compile
error if string_util.h is included before Shlwapi.h.

This fixes issue #545.

On Windows the Shlwapi.h file has a macro:

  #define StrCat lstrcatA

And benchmark/src/string_util.h defines StrCat and it is renamed to
lstrcatA if we don't undef the macro in Shlwapi.h. This is an innocuous
bug if string_util.h is included after Shlwapi.h, but it is a compile
error if string_util.h is included before Shlwapi.h.

This fixes issue google#545.
@dmah42 dmah42 merged commit f48a28d into google:master Mar 6, 2018
EricWF pushed a commit to efcs/benchmark that referenced this pull request Mar 22, 2018
On Windows the Shlwapi.h file has a macro:

  #define StrCat lstrcatA

And benchmark/src/string_util.h defines StrCat and it is renamed to
lstrcatA if we don't undef the macro in Shlwapi.h. This is an innocuous
bug if string_util.h is included after Shlwapi.h, but it is a compile
error if string_util.h is included before Shlwapi.h.

This fixes issue google#545.
JBakamovic pushed a commit to JBakamovic/benchmark that referenced this pull request Dec 6, 2018
On Windows the Shlwapi.h file has a macro:

  #define StrCat lstrcatA

And benchmark/src/string_util.h defines StrCat and it is renamed to
lstrcatA if we don't undef the macro in Shlwapi.h. This is an innocuous
bug if string_util.h is included after Shlwapi.h, but it is a compile
error if string_util.h is included before Shlwapi.h.

This fixes issue google#545.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants