google-cloud-cpp icon indicating copy to clipboard operation
google-cloud-cpp copied to clipboard

WinSvc.h macro mangling methods named CreateService

Open scotthart opened this issue 2 years ago • 3 comments

Because of the unfortunate preprocessor definition in WinSvc.h,

#ifdef UNICODE
#define CreateService  CreateServiceW
#else
#define CreateService  CreateServiceA
#endif // !UNICODE

services that define an rpc named "CreateService" get mangled when building on windows.

This is both a problem for us as well as grpc.

scotthart avatar Jun 14 '23 19:06 scotthart

related: https://github.com/grpc/grpc/issues/33501

scotthart avatar Jun 21 '23 16:06 scotthart

Blocked on gRPC doing something or C++20 modules.

coryan avatar Dec 13 '23 20:12 coryan

Still blocked on gRPC

scotthart avatar Jun 12 '24 19:06 scotthart