Commit 2786469d authored by François Grisez's avatar François Grisez

Makes BelleSip headers compliant with C++ 98 and older

parent e038e196
......@@ -148,7 +148,7 @@ BELLE_SIP_END_DECLS
#ifndef BELLE_SIP_USE_STL
#define BELLE_SIP_USE_STL 1
#endif
#if defined(__cplusplus) && BELLE_SIP_USE_STL
#if __cplusplus >= 201103L && BELLE_SIP_USE_STL
#include <functional>
typedef std::function<int (unsigned int)> belle_sip_source_cpp_func_t;
BELLESIP_EXPORT inline int belle_sip_source_cpp_func(belle_sip_source_cpp_func_t* user_data, unsigned int events)
......
......@@ -223,7 +223,7 @@ BELLE_SIP_END_DECLS
#define BELLE_SIP_USE_STL 1
#endif
#if defined(__cplusplus) && BELLE_SIP_USE_STL
#if __cplusplus >= 201103L && BELLE_SIP_USE_STL
#include <ostream>
inline std::ostream&
operator<<( std::ostream& __os, const belle_sip_uri_t* uri)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment