ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostUpdate/HostUpdate.hpp
(Generate patch)

Comparing HostUpdate/HostUpdate.hpp (file contents):
Revision 15 by Douglas Thrift, 2003-11-09T16:51:42-08:00 vs.
Revision 19 by Douglas Thrift, 2003-11-10T19:46:19-08:00

# Line 14 | Line 14
14   #include <set>
15   #include <map>
16   #include <cstdlib>
17 + #include <ctime>
18  
19   using namespace std;
20  
# Line 25 | Line 26 | using namespace std;
26   #include <unistd.h>
27   #include <dirent.h>
28  
29 + const char slash = '/';
30 +
31   inline int mkdir(const char* path)
32   {
33     return mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR);
# Line 34 | Line 37 | inline int mkdir(const char* path)
37  
38   #include <direct.h>
39  
40 + const char slash = '\\';
41 +
42   #endif
43  
44   inline string sgetenv(const string& name)
45   {
46          char* value = getenv(name.c_str());
47 <        
47 >
48          return value != NULL ? value : "";
49   }
50  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines