diff --git a/libsrc/protoserver/ProtoClientConnection.cpp b/libsrc/protoserver/ProtoClientConnection.cpp index e8bf1d91..051ca3e7 100644 --- a/libsrc/protoserver/ProtoClientConnection.cpp +++ b/libsrc/protoserver/ProtoClientConnection.cpp @@ -1,12 +1,13 @@ -// project includes -#include "ProtoClientConnection.h" - // qt #include #include #include #include +// project includes +#include "ProtoClientConnection.h" + + // TODO Remove this class if third-party apps have been migrated (eg. Hyperion Android Grabber, Windows Screen grabber etc.) ProtoClientConnection::ProtoClientConnection(QTcpSocket* socket, int timeout, QObject *parent) diff --git a/libsrc/protoserver/ProtoClientConnection.h b/libsrc/protoserver/ProtoClientConnection.h index 6d8ce378..e08658dc 100644 --- a/libsrc/protoserver/ProtoClientConnection.h +++ b/libsrc/protoserver/ProtoClientConnection.h @@ -1,14 +1,16 @@ #pragma once +// protobuffer PROTO +// protobuf defines an Error() function itself, so undef it here +#undef Error +#include "message.pb.h" + // util #include #include #include #include -// protobuffer PROTO -#include "message.pb.h" - class QTcpSocket; class QTimer; diff --git a/libsrc/protoserver/ProtoServer.cpp b/libsrc/protoserver/ProtoServer.cpp index 7bfc2954..fb45ae60 100644 --- a/libsrc/protoserver/ProtoServer.cpp +++ b/libsrc/protoserver/ProtoServer.cpp @@ -1,5 +1,5 @@ -#include #include "ProtoClientConnection.h" +#include // util #include