mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-16 00:04:13 +00:00
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:
1 parent
1d7422a1a4
commit
8fb167c779
3 files changed
+112
-9
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user