浏览代码

Implement _strlwr for non-Windows platforms

_strlwr is not present on non-Windows platforms.
master
父节点
当前提交
04b34ae8ff
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. +10
    -0
      midi-utils.c

+ 10
- 0
midi-utils.c 查看文件

@@ -1,5 +1,15 @@
#include "midi-utils.h"

#if !defined __WIN32
void _strlwr(char* dest) {
for (unsigned int i = 0; i < strlen(dest); i += 1) {
if ('A' <= dest[i] && dest[i] <= 'Z') {
dest[i] += 0x20;
}
}
}
#endif

char* MIDI_GetNoteName(unsigned char midi_note) {
static const char* pitch_names[] = {
"C",


正在加载...
取消
保存