#include <Batch_config.h>
#include "Batch_CommunicationProtocol.hxx"
-#include "Batch_CommunicationProtocolRSH.hxx"
-#include "Batch_CommunicationProtocolSH.hxx"
-#include "Batch_CommunicationProtocolSSH.hxx"
+#ifdef HAS_RSH
+ #include "Batch_CommunicationProtocolRSH.hxx"
+#endif
+#ifdef HAS_SH
+ #include "Batch_CommunicationProtocolSH.hxx"
+#endif
+#ifdef HAS_SSH
+ #include "Batch_CommunicationProtocolSSH.hxx"
+#endif
#include "Batch_APIInternalFailureException.hxx"
#include "Batch_RunTimeException.hxx"
#include <fstream>
#include <sstream>
+#ifdef WIN32
+#include <direct.h>
+#endif
+
#include <Batch_NotYetImplementedException.hxx>
#include <Batch_Constants.hxx>
#include <Batch_Utils.hxx>
Couple inputFile = cpt;
// Get absolute paths
- char * buf = getcwd(NULL, 0);
+ char * buf =
+#ifdef WIN32
+ _getcwd(NULL, 0);
+#else
+ getcwd(NULL, 0);
+#endif
string cwd = buf;
free(buf);
Versatile::const_iterator Vit;
// Create local result directory
- char * buf = getcwd(NULL, 0);
+ char * buf =
+#ifdef WIN32
+ _getcwd(NULL, 0);
+#else
+ getcwd(NULL, 0);
+#endif
string cwd = buf;
free(buf);
string absdir = (Utils::isAbsolutePath(directory))? directory : cwd + "/" + directory;