Fixed another missing posix.h. Documented a little bit of main.cpp.

This was SVN commit r2016.
This commit is contained in:
Ykkrosh 2005-03-18 23:04:29 +00:00
parent 468657479c
commit 219509f00f
2 changed files with 4 additions and 1 deletions

View File

@ -1039,7 +1039,9 @@ PREVTSC=TSC;
// crashes before the working directory is set.
MICROLOG(L"init vfs");
const char* argv0 = argc? argv[0] : NULL;
// TODO FIXME: why? document the need for this
// ScEd doesn't have a main(argc, argv), and so it has no argv. In that
// case, just pass NULL to InitVfs, which will work out the current
// directory for itself.
InitVfs(argv0);
// Set up the console early, so that debugging

View File

@ -3,6 +3,7 @@
#ifndef CStr_CPP_FIRST
#define CStr_CPP_FIRST
#include "posix.h" // for htons, ntohs
#include "Network/Serialization.h"
#include <cassert>