From d2d076cd23f2e375b023a2179967424b62456c58 Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Sat, 3 Apr 2010 22:06:50 +0000 Subject: [PATCH] Added command line parser. --- client/CMT.cpp | 71 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/client/CMT.cpp b/client/CMT.cpp index 046421321..81f6658ba 100644 --- a/client/CMT.cpp +++ b/client/CMT.cpp @@ -85,6 +85,13 @@ void dispose(); void playIntro(); static void listenForEvents(); +#ifndef _WIN32 +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif +#include +#endif + void init() { timeHandler tmh, pomtime; @@ -148,12 +155,74 @@ void init() //tlog0<<"Initialization CPreGame (together): "<