aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/archdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'gowin/archdefs.h')
-rw-r--r--gowin/archdefs.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gowin/archdefs.h b/gowin/archdefs.h
index 963660c6..ef297d41 100644
--- a/gowin/archdefs.h
+++ b/gowin/archdefs.h
@@ -18,9 +18,11 @@
*
*/
-#ifndef NEXTPNR_H
-#error Include "archdefs.h" via "nextpnr.h" only.
-#endif
+#ifndef GOWIN_ARCHDEFS_H
+#define GOWIN_ARCHDEFS_H
+
+#include "idstring.h"
+#include "nextpnr_namespaces.h"
NEXTPNR_NAMESPACE_BEGIN
@@ -68,3 +70,5 @@ struct ArchCellInfo
};
NEXTPNR_NAMESPACE_END
+
+#endif /* GOWIN_ARCHDEFS_H */