-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtest-runner.hpp
32 lines (27 loc) · 1.26 KB
/
test-runner.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/***************************************************************************
tag: The SourceWorks Tue Sep 7 00:54:57 CEST 2010 test-runner.hpp
test-runner.hpp - description
-------------------
begin : Tue September 07 2010
copyright : (C) 2010 The SourceWorks
email : [email protected]
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifdef WIN32
int setenv(const char *name, const char *value, int overwrite)
{
if (overwrite == 0)
{
char c;
if (GetEnvironmentVariable(name, &c, sizeof (c)) > 0) return 0;
}
if (SetEnvironmentVariable(name, value) != 0) return 0;
return -1;
}
#endif