#ifdef __UNIX__
#include <utime.h>
#endif
-#ifdef __WIN32__
+#ifdef _MSC_VER
#include <direct.h>
#include <io.h>
#include <shlobj.h>
astring target;
cmds.get_value("target", target);
if (!target) {
-/* no, this is wrong headed. make them supply a target if there is
- * no default target provided in the bundle.
- // a bogus default is provided if they don't specify the destination.
- target = environment::get("TMP") + "/unbundled";
-*/
provided_target = false;
} else {
//LOG(astring("target is now ") + target);
astring logdir = environment::get(LOGDIR_WORD);
#ifdef __WIN32__
if (!logdir) {
- logdir = environment::get("TMP") + "/logs";
+ logdir = environment::TMP() + "/logs";
environment::set(LOGDIR_WORD, logdir);
}
#else
}
}
- byte_filer *targo = NIL;
+ byte_filer *targo = NULL_POINTER;
if (keyword_good) targo = new byte_filer(curr._payload, "wb");
byte_array uncompressed(256 * KILOBYTE); // fluff it out to begin with.
byte_array temp(256 * KILOBYTE);