Unfortunately there is no flag to prefix enums this way. I have run into a
similar problem and the best solution I found was to just pass a flag to
the compiler to undefine the problematic macro.

On Fri, Jan 19, 2018 at 12:35 AM, Illya Galashko <[email protected]
> wrote:

> Hi,
> I have proto files with complex descriptions.
> There are several enums in this file.
> When I was trying to port my code on windows I faced a conflict between
> enum field and winSDK defines.
> Changing a name for enum parameter in proto file is not an option.
> I am wodnering if there is a flag which helps me generate files with
> prefixes or suffixes for enum parameters in C++ code.
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to