mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-14 07:50:36 +00:00
Work around Qt MOC issue with IdString enums
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
@@ -52,6 +52,9 @@ struct DelayInfo
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
// https://bugreports.qt.io/browse/QTBUG-80789
|
||||
|
||||
#ifndef Q_MOC_RUN
|
||||
enum ConstIds
|
||||
{
|
||||
ID_NONE
|
||||
@@ -65,6 +68,7 @@ enum ConstIds
|
||||
#define X(t) static constexpr auto id_##t = IdString(ID_##t);
|
||||
#include "constids.inc"
|
||||
#undef X
|
||||
#endif
|
||||
|
||||
NPNR_PACKED_STRUCT(struct LocationPOD { int16_t x, y; });
|
||||
|
||||
|
||||
@@ -48,6 +48,9 @@ struct DelayInfo
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
// https://bugreports.qt.io/browse/QTBUG-80789
|
||||
|
||||
#ifndef Q_MOC_RUN
|
||||
enum ConstIds
|
||||
{
|
||||
ID_NONE
|
||||
@@ -59,6 +62,7 @@ enum ConstIds
|
||||
#define X(t) static constexpr auto id_##t = IdString(ID_##t);
|
||||
#include "constids.inc"
|
||||
#undef X
|
||||
#endif
|
||||
|
||||
struct BelId
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user