-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
This plugin needs to be built for tf2ii and tf2idb separately because of name collisions occurring between some enums named the same way on both of their includes (on tf2idb, on tf2ii). This is just a compiler issue however and could be solved by just modifying the include files, both APIs can run simultaneously in one server.
Some options:
- Use an intermediate include that redefines names before including them
This will have to be done for each name that collides, and could break autocompletion on some scripting environments.
#define colliding_name api_colliding_name #include <api> #undef colliding_name #define colliding_name api2_colliding_name #include <api2>
- Patch the files in a precompile step.
- Fork the repos and fix the issue for good.