Displaying 4 results from an estimated 4 matches for "_putenv_s".
2016 Dec 14
1
testing
...for MSYS/MINGW and/or MSYS2/MINGW, for xapian-core versions(?), but here are sections of the 'configure' and 'make check' logs I output from a MSYS/MINGW (g++ 5.3.0) compile on XP SP3 (32 bit) Home Edition (xapian-core-1.2.24).
configure log
checking for setenv... no
checking for _putenv_s... yes
make_check log
I../../xapian-core-1.2.24/common -I../../xapian-core-1.2.24/include -I../include -I../../xapian-core-1.2.24/tests/harness -fshow-column -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Woverload...
2016 Dec 14
1
testing
...cc
compiled under MSYS/MINGW (g++ 5.3.0).
It seems likely that the error was specific to certain g++ versions.
https://github.com/mxe/mxe/issues/1448
Eric at ERICS-NETBOOK /c/WORK
$ cat test.cpp
#include <stdlib.h>
int setenv(const char *name, const char *value, int overwrite)
{
return _putenv_s(name, value);
}
int main()
{
setenv("a", "b", 1);
return 0;
}
Eric at ERICS-NETBOOK /c/WORK
$
Eric at ERICS-NETBOOK /c/WORK
$ g++ --version
g++.exe (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying...
2020 Aug 20
0
[PATCH nbdkit 12/13] wrapper: Port the wrapper to run on Windows.
...ompat.h
index 74241a19..0fcb20d2 100644
--- a/common/utils/windows-compat.h
+++ b/common/utils/windows-compat.h
@@ -103,6 +103,9 @@ extern int win_send (int fd, const void *buf, size_t len, int flags);
#define dup _dup
#define dup2 _dup2
+/* setenv replacement. */
+#define setenv(k, v, replace) _putenv_s ((k), (v));
+
/* Unfortunately quite commonly used at the moment. Make it a common
* macro so we can easily find places which need porting.
*
diff --git a/server/fuzzer.c b/server/fuzzer.c
index c28a1798..4bbb0061 100644
--- a/server/fuzzer.c
+++ b/server/fuzzer.c
@@ -119,7 +119,7 @@ server (...
2020 Aug 20
15
[PATCH nbdkit 0/13] Port to Windows without using a separate library.
Also available here:
https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw-nolib
After a lot of work I have made the port to Windows work without using
a separate library. Instead, on Windows only, we build an "import
library" (library of stubs) which resolves references to nbdkit_*
functions in the main program and fixes up the plugin, basically the
first technique outlined in