For a simple proto file:
message Person {
required int32 id = 1;
required string name = 2;
optional string email = 3;
}
It\'s been compiled by pr
A simple approach is to use a wrapper header for including the generated protobuf headers:
#ifndef MESSAGES_WRAPPER_H
#define MESSAGES_WRAPPER_H
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4018 4100 4267)
#endif
#include "messages.pb.h"
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#endif // MESSAGES_WRAPPER_H