[babl] babl-verify: make it compile on win32, by making setenv use putenv



commit b1b3f456611db45f7ce34bf6a6c5d8e3c600e5b8
Author: Øyvind Kolås <pippin gimp org>
Date:   Mon Nov 21 13:44:51 2016 +0100

    babl-verify: make it compile on win32, by making setenv use putenv

 tools/babl-verify.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tools/babl-verify.c b/tools/babl-verify.c
index e58dc85..3e2a7e4 100644
--- a/tools/babl-verify.c
+++ b/tools/babl-verify.c
@@ -2,6 +2,10 @@
 #include <stdlib.h>
 #include "babl/babl.h"
 
+#ifdef _WIN32
+#define setenv(a,b,c)  putenv((a),(b))
+#endif
+
 int main (int argc, char **argv)
 {
   if (argc != 3)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]