Skip to content

Commit

Permalink
Prevent collisions between Max SDK preprocessor macros like
Browse files Browse the repository at this point in the history
object_method and min's definitions
  • Loading branch information
isabelgk committed Feb 15, 2024
1 parent b6fe686 commit db558b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/c74_min_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,18 @@
#include "murmur/Murmur3.h" // used for constexpr hash function

#include "c74_max.h"
// avoid collision between preprocessor macro from the Max SDK and
// Min's definition of c74::max::object_method
#undef object_method
#undef object_new

#include "c74_ui.h"
#include "c74_ui_graphics.h"

#include "c74_jitter.h"
// avoid collision with preprocessor macro from the Max SDK
#undef jit_object_new

#include "c74_msp.h"

using c74::max::t_atom_long;
Expand Down

0 comments on commit db558b6

Please sign in to comment.