libnice stores its headers in e.g. /usr/include/nice/ but 'pkg-config --cflags nice'
gives '-D_REENTRANT -I/usr/include/nice' meaning a generic-named header should as agent.h, debug.h or interfaces.h is includable as:
Moreover, the include-guard used in e.g. agent.h:
is overly generic as well, and risks collision with other packages.
I couldn't agree more, but changing this would break existing apps. So it will have to wait until we do an API break of some kind.
The include-guards can be changed already.
Possibly, we should encourage people to use #include <nice/agent.h> instead of just <agent.h>.
I improved the guards a little.
Author: Olivier Crête <firstname.lastname@example.org>
Date: Mon Apr 20 15:44:16 2015 -0400
Prefix include guards
The include file names are very generic, at least make
the guards a bit less generic.
Migrated to Phabricator: http://phabricator.freedesktop.org/T113