Skip to content

Commit b2d1aa6

Browse files
committed
Fix random() stdlib clash in Processing_api.h
1 parent 986d181 commit b2d1aa6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Processing_api.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
#pragma once
55
#include "Processing.h"
66
#include <string>
7+
// Suppress stdlib random() which conflicts with Processing random(float)
8+
#ifdef random
9+
# undef random
10+
#endif
711

812
// ── Math (static, no instance needed) ────────────────────────────────────────
913
inline float radians(float d) { return PApplet::radians(d); }

0 commit comments

Comments
 (0)