ZRTPCPP icon indicating copy to clipboard operation
ZRTPCPP copied to clipboard

Fix relative includes

Open manisandro opened this issue 11 years ago • 0 comments

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.

manisandro avatar Dec 24 '14 15:12 manisandro