فهرست منبع

core: Fixed inline function declaration for non-gcc linkers

usage of either 'extern inline' or 'static inline' depending on function scope is recommended
Marius Zbihlei 13 سال پیش
والد
کامیت
d5a8649a20
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      parser/parse_param.h
  2. 1 1
      raw_sock.c
  3. 1 1
      sip_msg_clone.c

+ 1 - 1
parser/parse_param.h

@@ -150,7 +150,7 @@ typedef union param_hooks {
  * 	0: success, but expect a next paramter
  * 	1: success and exepect no more parameters
  */
-inline int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t);
+extern inline int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t);
 
 
 /*! \brief

+ 1 - 1
raw_sock.c

@@ -391,7 +391,7 @@ error:
  *                 in _host_ order.
  * @return the partial checksum in host order
  */
-inline unsigned short udpv4_vhdr_sum(	struct udphdr* uh,
+static inline unsigned short udpv4_vhdr_sum(	struct udphdr* uh,
 										struct in_addr* src,
 										struct in_addr* dst,
 										unsigned short length)

+ 1 - 1
sip_msg_clone.c

@@ -150,7 +150,7 @@ do { \
 
 
 
-inline struct via_body* via_body_cloner( char* new_buf,
+static inline struct via_body* via_body_cloner( char* new_buf,
 					char *org_buf, struct via_body *param_org_via, char **p)
 {
 	struct via_body *new_via;