mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
- fixed compilation with GCC and Clang
libraries/wildmidi/file_io.cpp:68:40: error: use of undeclared identifier 'malloc' libraries/wildmidi/wildmidi_lib.cpp:672:10: error: use of undeclared identifier 'stricmp'; did you mean 'strcmp'? libraries/wildmidi/wildmidi_lib.cpp:1011:11: error: use of undeclared identifier 'strnicmp'; did you mean 'strncmp'?
This commit is contained in:
parent
c3f26422df
commit
cb444d3ae3
2 changed files with 13 additions and 0 deletions
|
@ -9,6 +9,18 @@ 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()
|
||||||
|
|
||||||
|
CHECK_FUNCTION_EXISTS( strnicmp STRNICMP_EXISTS )
|
||||||
|
if( NOT STRNICMP_EXISTS )
|
||||||
|
add_definitions( -Dstrnicmp=strncasecmp )
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories( wildmidi )
|
include_directories( wildmidi )
|
||||||
|
|
||||||
file( GLOB HEADER_FILES
|
file( GLOB HEADER_FILES
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "wm_error.h"
|
#include "wm_error.h"
|
||||||
#include "file_io.h"
|
#include "file_io.h"
|
||||||
|
|
Loading…
Reference in a new issue