Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
c33a8f2d
Commit
c33a8f2d
authored
Sep 22, 2017
by
Sylvain Berfini
🐮
Browse files
Fixed compilation due to namespace issue
parent
1b2e103d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/c-wrapper/internal/c-tools.h
View file @
c33a8f2d
...
...
@@ -303,19 +303,19 @@ LINPHONE_END_NAMESPACE
#define L_REGISTER_TYPE(CPP_TYPE, C_TYPE) \
extern Linphone ## C_TYPE *_linphone_ ## C_TYPE ## _init (); \
namespace LINPHONE_NAMESPACE { \
class CPP_TYPE; \
}; \
LINPHONE_BEGIN_NAMESPACE \
class CPP_TYPE; \
template<> \
struct
LINPHONE_NAMESPACE::CppTypeToCType<LINPHONE_NAMESPACE::
CPP_TYPE> { \
struct
CppTypeToCType<
CPP_TYPE> { \
enum { defined = true }; \
typedef Linphone ## C_TYPE type; \
}; \
template<> \
struct
LINPHONE_NAMESPACE::
CTypeToCppType<Linphone ## C_TYPE> { \
struct CTypeToCppType<Linphone ## C_TYPE> { \
enum { defined = true }; \
typedef LINPHONE_NAMESPACE::CPP_TYPE type; \
};
typedef CPP_TYPE type; \
}; \
LINPHONE_END_NAMESPACE
#define L_ASSERT_C_TYPE(C_TYPE) \
static_assert(LINPHONE_NAMESPACE::CTypeToCppType<Linphone ## C_TYPE>::defined, "Type is not defined."); \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment