[PATCH 5.15 667/731] libbpf: Avoid enum forward-declarations in public API in C++ mode