Skip to content

Commit ba8052b

Browse files
committed
ci: try to fix example
1 parent fdb7ee8 commit ba8052b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

examples/modules.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import libremidi;
22

3+
#define LIBREMIDI_USE_MODULES 1
34
#include "utils.hpp"
45

56
#include <cstdlib>

examples/utils.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#pragma once
22

3+
#if !defined(LIBREMIDI_USE_MODULES)
34
#include <libremidi/libremidi.hpp>
45
// Credits to https://raw.githubusercontent.com/atsushieno/cmidi2
56
#include <libremidi/cmidi2.hpp>
7+
#endif
68
#if LIBREMIDI_USE_NI_MIDI2
79
#include <midi/universal_packet.h>
810
#endif

0 commit comments

Comments
 (0)