diff options
author | Brian C. Lane <bcl@redhat.com> | 2022-08-04 11:39:09 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2022-08-04 11:53:32 -0700 |
commit | aa690ee275db86d1edb2468bcf31c3d7cf81228e (patch) | |
tree | a15bdac71686255b670a2b8b7e3eb068f48bf015 /build-aux | |
parent | b16be5ffc8e700df2b6b2545c4b6794cea71b8e7 (diff) | |
download | parted-aa690ee275db86d1edb2468bcf31c3d7cf81228e.tar.gz |
disk.in.h: Remove use of enums with #define
The preprocessor doesn't evaluate the enum, so it ends up being 0, which
causes problems for library users like pyparted which try to use the _LAST
value to conditionally include support for newer flags.
Instead just define the int that is the first and last entry in each enum.
Thanks to adamw and dcantrell for help arriving at a solution.
Diffstat (limited to 'build-aux')
0 files changed, 0 insertions, 0 deletions