Thanks for replying.

I have this code:
```
...
                    } else if (strcmp(token, "nodb") == 0){
                        pConf->rpmTransFlags |= RPMTRANS_FLAG_NODB;
                    } else if (strcmp(token, "noconfigs") == 0){
                        pConf->rpmTransFlags |= RPMTRANS_FLAG_NOCONFIGS;
                    } else {
                        pr_err("unknown tsflag '%s'\n", token);
...
```
so for `RPMTRANS_FLAG_NODB` I want to build this conditionally, depending on 
whether `RPMTRANS_FLAG_NODB` is defined or not. As I said, I cannot use `#ifdef 
RPMTRANS_FLAG_NODB` because it's an enum value, not a macro. What do you 
recommend to do here?

FWIW, the project uses `cmake`. It's https://github.com/vmware/tdnf . Of course 
I could create some setting like `HAVE_RPMTRANS_FLAG_NODB` and set that as an 
argument to `cmake`, but I'd prefer something automatic.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2841#discussioncomment-8114545
You are receiving this because you are subscribed to this thread.

Message ID: 
<rpm-software-management/rpm/repo-discussions/2841/comments/8114...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to