FSCRE-253 netbsd does not follow opengroup prototypes on toupper and tolower so we have to do stupid workarounds.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10760 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-12-15 02:48:50 +00:00
parent 1d7422a1a4
commit 8fb167c779
3 changed files with 112 additions and 9 deletions
+2 -2
View File
@@ -339,13 +339,13 @@ static switch_status_t setup_formats(void)
map->format = info.format;
if (map->ext) {
for (p = map->ext; *p; p++) {
*p = (char) tolower(*p);
*p = (char) switch_tolower(*p);
}
switch_core_hash_insert(globals.format_hash, map->ext, map);
}
if (map->uext) {
for (p = map->uext; *p; p++) {
*p = (char) toupper(*p);
*p = (char) switch_toupper(*p);
}
switch_core_hash_insert(globals.format_hash, map->uext, map);
}