test-runner.hpp
Go to the documentation of this file.
00001 /***************************************************************************
00002   tag: The SourceWorks  Tue Sep 7 00:54:57 CEST 2010  test-runner.hpp
00003 
00004                         test-runner.hpp -  description
00005                            -------------------
00006     begin                : Tue September 07 2010
00007     copyright            : (C) 2010 The SourceWorks
00008     email                : peter@thesourceworks.com
00009 
00010  ***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 
00020 #ifdef WIN32
00021 int setenv(const char *name, const char *value, int overwrite)
00022 {
00023   if (overwrite == 0)
00024   {
00025     char c;
00026     if (GetEnvironmentVariable(name, &c, sizeof (c)) > 0) return 0;
00027   }
00028 
00029   if (SetEnvironmentVariable(name, value) != 0) return 0;
00030   return -1;
00031 }
00032 #endif


rtt
Author(s): RTT Developers
autogenerated on Mon Oct 6 2014 03:13:54