Skip to content

Commit 5448aea

Browse files
authored
Merge pull request #727 from FtZPetruska/null-optional-disabled
Fix building with libxmp disabled
2 parents e04f2ab + 0e7fa39 commit 5448aea

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

prboom2/src/MUSIC/flplayer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
#include "musicplayer.h"
3636

3737
#ifndef HAVE_LIBFLUIDSYNTH
38-
#include <string.h>
38+
39+
#include <stddef.h>
3940

4041
static const char *fl_name (void)
4142
{

prboom2/src/MUSIC/madplayer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
#include "musicplayer.h"
3838

3939
#ifndef HAVE_LIBMAD
40-
#include <string.h>
40+
41+
#include <stddef.h>
4142

4243
static const char *mp_name (void)
4344
{

prboom2/src/MUSIC/portmidiplayer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
#include "musicplayer.h"
3939

4040
#ifndef HAVE_LIBPORTMIDI
41-
#include <string.h>
41+
42+
#include <stddef.h>
4243

4344
static const char *pm_name (void)
4445
{

prboom2/src/MUSIC/vorbisplayer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
#include "musicplayer.h"
3838

3939
#ifndef HAVE_LIBVORBISFILE
40-
#include <string.h>
40+
41+
#include <stddef.h>
4142

4243
static const char *vorb_name (void)
4344
{

prboom2/src/MUSIC/xmpplayer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
#ifndef HAVE_LIBXMP
2424

25+
#include <stddef.h>
26+
2527
static const char *xmp_name(void)
2628
{
2729
return "libxmp tracker player (DISABLED)";

0 commit comments

Comments
 (0)