On 21 April 2016 at 20:10, Chuck Atkins <chuck.atk...@kitware.com> wrote: >>> >> Drop the includes altogether, and forward declare the needed symbols. >> >> >> But then you end up with forward declarations of symbols that may not even >> exist. > > > I guess you'll already have prototypes that will remain unresolved since if > you're using GLX then you probably won't be linking both libEGL anyways/ > Precisely. It's not a perfect solution, esp. when people can build with one or the other or even both at the same time.
The cool thing is that compiles/linkers, these days, will give you a nice fat warning/error :-) Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev