mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +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:
@@ -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