Move -DUSE_TYPED_DRVET to USR_CPPFLAGS

Also fixes an issue in the generated registerRecordDeviceDriver code.
This commit is contained in:
Andrew Johnson authored and Dirk Zimoch committed 2026-10-14 11:17:01 +02:00
1 parent 5b29ce506e
commit f73f888df8
3 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ TOP = ../../../..
include $(TOP)/configure/CONFIG
USR_CPPFLAGS += -DUSE_TYPED_RSET -DUSE_TYPED_DSET
USR_CPPFLAGS += -DUSE_TYPED_RSET -DUSE_TYPED_DSET -DUSE_TYPED_DRVET
# Shared library ABI version.
SHRLIB_VERSION = $(EPICS_DATABASE_MAJOR_VERSION).$(EPICS_DATABASE_MINOR_VERSION).$(EPICS_DATABASE_MAINTENANCE_VERSION)
@@ -11,8 +11,6 @@
SRC_DIRS += $(IOCDIR)/dbStatic
USR_CFLAGS += -DUSE_TYPED_DRVET
INC += dbBase.h
INC += dbFldTypes.h
INC += dbStaticLib.h
@@ -164,7 +164,7 @@ if (%drivers) {
print $out "};\n\n";
# List of pointers to each drvet
print $out "static struct drvet *drvsl[] = {\n";
print $out "static drvet *drvsl[] = {\n";
print $out join(",\n", map {" pvar_drvet_$_"} @drivers);
print $out "};\n\n";
}