mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
msvc build fixes for libnatpmp and miniupnpc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13534 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -14,11 +14,11 @@
|
||||
do { n = (n << 7) | (*p & 0x7f); } \
|
||||
while(*(p++)&0x80);
|
||||
|
||||
#define CODELENGTH(n, p) if(n>=268435456) *(p++) = (n >> 28) | 0x80; \
|
||||
if(n>=2097152) *(p++) = (n >> 21) | 0x80; \
|
||||
if(n>=16384) *(p++) = (n >> 14) | 0x80; \
|
||||
if(n>=128) *(p++) = (n >> 7) | 0x80; \
|
||||
*(p++) = n & 0x7f;
|
||||
#define CODELENGTH(n, p) if(n>=268435456) *(p++) = (unsigned char)((n >> 28) | 0x80); \
|
||||
if(n>=2097152) *(p++) = (unsigned char)((n >> 21) | 0x80); \
|
||||
if(n>=16384) *(p++) = (unsigned char)((n >> 14) | 0x80); \
|
||||
if(n>=128) *(p++) = (unsigned char)((n >> 7) | 0x80); \
|
||||
*(p++) = (unsigned char)(n & 0x7f);
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user