Changeset 16949 for gsdl/trunk/common-src/src/lib/gsdltools.cpp
- Timestamp:
- 2008-08-21T15:34:51+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/common-src/src/lib/gsdltools.cpp
r16909 r16949 26 26 #include "gsdltools.h" 27 27 #include "fileutil.h" 28 29 30 #if defined(GSDL_USE_OBJECTSPACE) 31 # include <ospace/std/iostream> 32 #elif defined(GSDL_USE_IOS_H) 33 # include <iostream.h> 34 #else 35 # include <iostream> 36 using namespace std; 37 #endif 38 28 39 29 40 #if defined(__WIN32__) … … 216 227 retain_gsdlosc = putgsdlos.getcstr(); 217 228 retain_gsdlhomec = putgsdlhome.getcstr(); 218 retain_pathc = p ath.getcstr();229 retain_pathc = putpath.getcstr(); 219 230 220 231 if ((putenv(retain_gsdlosc)!=0) || (putenv(retain_gsdlhomec)!=0) 221 232 || (putenv(retain_pathc)!=0)) 222 233 { 223 perror("Setting Greenstone environment variables with putenv()"); 234 // Would be better if the ostream& logout was used here. 235 cerr << "Error setting Greenstone environment variables with putenv()" << endl; 236 // perror("putenv(...): "); // This didn't yield any noticable output under Windows running local library server 224 237 return false; 225 238 }
Note:
See TracChangeset
for help on using the changeset viewer.