--- libprojectM-4.1.6/src/playlist/CMakeLists.txt.orig	2025-12-16 08:24:28.610062700 +0100
+++ libprojectM-4.1.6/src/playlist/CMakeLists.txt	2025-12-16 08:24:36.263660600 +0100
@@ -34,6 +34,13 @@
         ${PROJECTM_FILESYSTEM_LIBRARY}
         )
 
+if(BUILD_SHARED_LIBS)
+    target_compile_definitions(projectM_playlist_main
+            PRIVATE
+            projectM_playlist_EXPORTS
+            )
+endif()
+
 add_library(projectM_playlist
         ${PROJECTM_DUMMY_SOURCE_FILE} # CMake needs at least one "real" source file.
         $<TARGET_OBJECTS:projectM_playlist_main>
