Skip to content

Commit

Permalink
Brutal hack to work around Faust version issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bgribble committed Feb 25, 2025
1 parent b400cfd commit 9a83e03
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mfpdsp/builtin_faust.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,21 @@
#include <string.h>
#include <glib.h>
#include <pthread.h>

/* HACK -- force some definitions before including any Faust code */
#define LIBFAUSTCOMMON_C_H
#include "faust/export.h"
#include <stdbool.h>

typedef struct {} CTree;
typedef CTree* Signal;
typedef CTree* Box;
enum SType { kSInt, kSReal };
enum SOperator { kAdd, kSub, kMul, kDiv, kRem, kLsh, kARsh, kLRsh, kGT, kLT, kGE, kLE, kEQ, kNE, kAND, kOR, kXOR };

LIBFAUST_API char* CprintSignal(Signal sig, bool shared, int max_size);
/* END HACK */

#include "faust/dsp/libfaust-c.h"
#include "faust/dsp/llvm-dsp-c.h"

Expand Down

0 comments on commit 9a83e03

Please sign in to comment.