Skip to content

Commit

Permalink
Put in guard against double-definition of COUNT_OF() macro
Browse files Browse the repository at this point in the history
  • Loading branch information
h4yn0nnym0u5e committed Dec 17, 2021
1 parent 661203c commit 03fcf80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/OSCAudioUseMIDI/OSCAudioUseMIDI.h
@@ -1 +1,3 @@
#define COUNT_OF(x) ((sizeof x)/(sizeof x[0]))
#if !defined(COUNT_OF)
#define COUNT_OF(x) ((sizeof x) / (sizeof x[0]))
#endif // !defined(COUNT_OF)

0 comments on commit 03fcf80

Please sign in to comment.