Skip to content

Commit

Permalink
include all pj headers in extern "C"
Browse files Browse the repository at this point in the history
Change-Id: I704857602be0c65751721331707b1a9928f4785b
  • Loading branch information
aberaud committed Jul 27, 2023
1 parent 0627100 commit 9e0f84f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/ice_transport_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
#include "ice_transport.h"
#include "ip_utils.h"

#include <pjnath.h>
#include <pjlib.h>
#include <pjlib-util.h>

#include <functional>
#include <memory>
#include <vector>

extern "C" {
#include <pjnath.h>
#include <pjlib.h>
#include <pjlib-util.h>
}

namespace dhtnet {

class IceTransportFactory
Expand Down
2 changes: 2 additions & 0 deletions src/fileutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@
#include <cstddef>
#include <ciso646>

extern "C" {
#include <pj/ctype.h>
#include <pjlib-util/md5.h>
}

#include <filesystem>

Expand Down
2 changes: 2 additions & 0 deletions src/ice_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
#include <opendht/logger.h>
#include <opendht/utils.h>

extern "C" {
#include <pjlib.h>
}

#include <map>
#include <atomic>
Expand Down
2 changes: 2 additions & 0 deletions src/sip_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
#include <cstring> // strcmp
#include <memory>

extern "C" {
#include <pjlib.h>
}

namespace dhtnet {
namespace sip_utils {
Expand Down
2 changes: 2 additions & 0 deletions src/turn/turn_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
#include <functional>
#include <stdexcept>

extern "C" {
#include <pjnath.h>
#include <pjlib-util.h>
#include <pjlib.h>
}

#define TRY(ret) \
do { \
Expand Down

0 comments on commit 9e0f84f

Please sign in to comment.