aboutsummaryrefslogtreecommitdiff
path: root/ENV.c
diff options
context:
space:
mode:
Diffstat (limited to 'ENV.c')
-rw-r--r--ENV.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ENV.c b/ENV.c
index d2bba4d..772e4e1 100644
--- a/ENV.c
+++ b/ENV.c
@@ -5,6 +5,10 @@
#include "m_pd.h"
#include <stdlib.h>
+#ifdef _WIN32
+#define setenv(a,b,c) _putenv(a)
+#endif /* _WIN32 */
+
#ifndef RAND_MAX
#define RAND_MAX 2147483647
#endif