mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- 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:
parent
7962bf189e
commit
dffcefbfdf
3 changed files with 9 additions and 0 deletions
|
@ -9,6 +9,13 @@ endif()
|
|||
|
||||
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 )
|
||||
|
||||
file( GLOB HEADER_FILES
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "t_swap.h"
|
||||
#include "timidity.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <memory>
|
||||
#include <algorithm>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "timidity.h"
|
||||
#include "timidity_file.h"
|
||||
|
|
Loading…
Reference in a new issue