mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FSCORE-253. add the following functions to work around netbsd failures
switch_toupper switch_tolower switch_isalnum switch_isalpha switch_iscntrl switch_isdigit switch_isgraph switch_islower switch_isprint switch_ispunct switch_isspace switch_isupper switch_isxdigit git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10761 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -44,6 +44,18 @@ SWITCH_BEGIN_EXTERN_C
|
||||
|
||||
SWITCH_DECLARE(int) switch_toupper(int c);
|
||||
SWITCH_DECLARE(int) switch_tolower(int c);
|
||||
SWITCH_DECLARE(int) switch_isalnum(int c);
|
||||
SWITCH_DECLARE(int) switch_isalpha(int c);
|
||||
SWITCH_DECLARE(int) switch_iscntrl(int c);
|
||||
SWITCH_DECLARE(int) switch_isdigit(int c);
|
||||
SWITCH_DECLARE(int) switch_isgraph(int c);
|
||||
SWITCH_DECLARE(int) switch_islower(int c);
|
||||
SWITCH_DECLARE(int) switch_isprint(int c);
|
||||
SWITCH_DECLARE(int) switch_ispunct(int c);
|
||||
SWITCH_DECLARE(int) switch_isspace(int c);
|
||||
SWITCH_DECLARE(int) switch_isupper(int c);
|
||||
SWITCH_DECLARE(int) switch_isxdigit(int c);
|
||||
|
||||
|
||||
#define switch_samples_per_packet(rate, interval) ((uint32_t)((float)rate / (1000.0f / (float)interval)))
|
||||
#define SWITCH_SMAX 32767
|
||||
|
||||
Reference in New Issue
Block a user