wernerd / ZRTPCPP

C++ Implementation of ZRTP protocol - GNU ZRTP C++
Other
115 stars 50 forks source link

Fix relative includes #19

Open manisandro opened 9 years ago

manisandro commented 9 years ago

The installed libzrtpcpp headers (placed in /usr/include/libzrtpcpp) usually include themselves via

#include <libzrtpcpp/XXX>

and projects using libzrtpcpp do so as well (i.e. sflphone). There are however a few cases where headers in /usr/include/libzrtpcpp include other headers using the angle-bracket #include but without the libzrtpcpp/, i.e.

#include <ZrtpQueue.h>
#include <CcrtpTimeoutProvider.h>
#include <common/osSpecifics.h>

This breaks compilation of i.e. sflphone, since the headers cannot be found. This pull request changes those include statements to using the #include with quotes:

#include "ZrtpQueue.h"
/* etc */

Using #include <libzrtpcpp/XXX> in those cases does not work since in the source files the headers are not placed beneath the libzrtpcpp folder.