Proto*: fix Error macro conflict (#1146)

Fixes: #882
This commit is contained in:
Gerion Entrup
2021-02-23 14:25:32 +01:00
committed by GitHub
parent f843b5a046
commit 6ed9553ca3
3 changed files with 10 additions and 7 deletions

View File

@@ -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 <utils/Logger.h>
#include <utils/Image.h>
#include <utils/ColorRgb.h>
#include <utils/Components.h>
// protobuffer PROTO
#include "message.pb.h"
class QTcpSocket;
class QTimer;