Skip to content

Commit 3a79ff4

Browse files
committed
Fix playlist API header includes
Most playlist headers did not compile in pure C, as types like bool and size_t are used in calls. Added the proper includes as needed to make each header compile if included standalone.
1 parent 0227b7a commit 3a79ff4

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

src/playlist/api/projectM-4/playlist_callbacks.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
#pragma once
2828

2929
#include "projectM-4/playlist_types.h"
30-
#include <stdint.h>
30+
31+
#include <stdbool.h>
3132

3233
#ifdef __cplusplus
3334
extern "C" {

src/playlist/api/projectM-4/playlist_filter.h

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
#include "projectM-4/playlist_types.h"
3030

31+
#include <stddef.h>
32+
3133
#ifdef __cplusplus
3234
extern "C" {
3335
#endif

src/playlist/api/projectM-4/playlist_items.h

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828

2929
#include "projectM-4/playlist_types.h"
3030

31+
#include <stdint.h>
32+
#include <stdbool.h>
33+
3134
#ifdef __cplusplus
3235
extern "C" {
3336
#endif

src/playlist/api/projectM-4/playlist_playback.h

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828

2929
#include "projectM-4/playlist_types.h"
3030

31+
#include <stdint.h>
32+
#include <stdbool.h>
33+
3134
#ifdef __cplusplus
3235
extern "C" {
3336
#endif

0 commit comments

Comments
 (0)