Skip to content

Commit

Permalink
Fix implicit declaration of function strcasecmp with musl
Browse files Browse the repository at this point in the history
This will also help in making the source code c99 compilant, thus
helping in packaing for newer compilers (for example clang 16 and gcc 14)

Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
  • Loading branch information
listout committed May 11, 2023
1 parent 4261e0e commit d4aa950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ include ( CheckIncludeFile )
include ( CheckSymbolExists )
include ( CheckTypeSize )
check_include_file ( string.h HAVE_STRING_H )
check_include_file ( string.h HAVE_STRINGS_H )
check_include_file ( stdlib.h HAVE_STDLIB_H )
check_include_file ( stdio.h HAVE_STDIO_H )
check_include_file ( math.h HAVE_MATH_H )
Expand Down
3 changes: 3 additions & 0 deletions src/utils/fluidsynth_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
#include <string.h>
#endif

#if HAVE_STRINGS_H
#include <strings.h>
#endif

#include "fluidsynth.h"

Expand Down

0 comments on commit d4aa950

Please sign in to comment.