Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@

#ifdef __clang__
#pragma pop // -Wtautological-compare
#endif
#endif
9 changes: 9 additions & 0 deletions stk/Stk.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
#include <vector>
#include <cstdlib>

#if JUCE_ANDROID
#include <sys/endian.h>
// Stk.h defines stk::swap16/32/64. This conflicts with macros in <sys/endian.h> on Android. Workaround: undefine them in the stk.h juce module header
#pragma message ("undefining swap16/32/64 macros to avoid conflict with stk header")
#undef swap16
#undef swap32
#undef swap64
#endif

/*! \namespace stk
\brief The STK namespace.

Expand Down