Browse Source

VERSION guard

master
Odilitime 5 years ago
parent
commit
961f21db8d
  1. 13
      src/main.cpp

13
src/main.cpp

@ -12,11 +12,13 @@ @@ -12,11 +12,13 @@
#include <iostream>
#include <sys/stat.h>
#include <string.h>
#ifdef _WIN32
extern "C"{
void init_heap();
}
#endif
#endif
#if defined(_WIN32) && !defined(_WIN64)
#define PLATFORM "i686-pc-winnt"
#endif
@ -92,11 +94,14 @@ int main(int argc, char *argv[]) { @@ -92,11 +94,14 @@ int main(int argc, char *argv[]) {
std::cout << "./netrunner [http://host.tld/|/path/to/file.html] [-log <error|warning|notice|info|debug>]" << std::endl;
return 1;
}
# ifdef _WIN32
#ifdef _WIN32
init_heap(); // the NT port requires it. We do it at startup now, to allow 2LSF to run at any time
# endif
#endif
#if defined(VERSION) && defined(PLATFORM)
std::cout << "/g/ntr - NetRunner build " << __DATE__ << ": rev-" << VERSION << " for " << PLATFORM << std::endl;
#else
std::cout << "/g/ntr - NetRunner build " << __DATE__ << std::endl;
#endif
Environment::init();
// we need to set up OGL before we can setDOM (because component can't be constructed (currently) without OGL)
// but should be after CommandLineParams incase we need to change some type of window config

Loading…
Cancel
Save