- fixed compilation with GCC and Clang

libraries/timidity/instrum_dls.cpp:1071:18: error: ‘INT_MIN’ was not declared in this scope
libraries/timidity/instrum_font.cpp:37:47: error: ‘stricmp’ was not declared in this scope
libraries/timidity/timidity.cpp:207:32: error: ‘strcmp’ was not declared in this scope
libraries/timidity/timidity.cpp:235:24: error: ‘strcmp’ was not declared in this scope
libraries/timidity/timidity.cpp:310:33: error: ‘strchr’ was not declared in this scope
libraries/timidity/timidity.cpp:515:30: error: ‘strchr’ was not declared in this scope
libraries/timidity/timidity.cpp:602:34: error: ‘memset’ was not declared in this scope
libraries/timidity/timidity.cpp:648:35: error: ‘memcpy’ was not declared in this scope
libraries/timidity/timidity.cpp:753:41: error: ‘memset’ was not declared in this scope
This commit is contained in:
alexey.lysiuk 2019-09-25 11:40:20 +03:00
parent 7962bf189e
commit dffcefbfdf
3 changed files with 9 additions and 0 deletions

View file

@ -9,6 +9,13 @@ endif()
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ZD_FASTMATH_FLAG}") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ZD_FASTMATH_FLAG}")
include( CheckFunctionExists )
CHECK_FUNCTION_EXISTS( stricmp STRICMP_EXISTS )
if( NOT STRICMP_EXISTS )
add_definitions( -Dstricmp=strcasecmp )
endif()
include_directories( timidity ) include_directories( timidity )
file( GLOB HEADER_FILES file( GLOB HEADER_FILES

View file

@ -24,6 +24,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <math.h> #include <math.h>
#include <limits.h>
#include "t_swap.h" #include "t_swap.h"
#include "timidity.h" #include "timidity.h"

View file

@ -25,6 +25,7 @@
#include <memory> #include <memory>
#include <algorithm> #include <algorithm>
#include <stdarg.h> #include <stdarg.h>
#include <string.h>
#include "timidity.h" #include "timidity.h"
#include "timidity_file.h" #include "timidity_file.h"