/*
- Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+ Copyright (C) 1999-2007 id Software, Inc. and contributors.
For a list of contributors, see the accompanying CONTRIBUTORS file.
This file is part of GtkRadiant.
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifdef WIN32
+#include "globaldefs.h"
+
+#if GDEF_OS_WINDOWS
#include <io.h>
-#endif
+#endif // GDEF_OS_WINDOWS
+
#include "q3data.h"
#include "md3lib.h"
// bogus externs for some TA hacks (common/ using them against q3map)
char *moddir = NULL;
-// some old defined that was in cmdlib lost during merge
-char writedir[1024];
-#if defined ( __linux__ ) || defined ( __APPLE__ )
+#if !GDEF_OS_WINDOWS
#define strlwr strlower
-#endif
+#endif // !GDEF_OS_WINDOWS
/*
=======================================================
===============
*/
-#ifdef _WIN32
+#if GDEF_OS_WINDOWS
#include "io.h"
void PackDirectory_r( char *dir ){
struct _finddata_t fileinfo;
#else
#include <sys/types.h>
-#ifndef WIN32
+#if !GDEF_OS_WINDOWS
#include <sys/dir.h>
#else
#include <sys/dirent.h>
//=======================================================
-#include "version.h"
-
/*
==============
main
// using GtkRadiant's versioning next to Id's versioning
printf( "Q3Data - (c) 1999 Id Software Inc.\n" );
- printf( "NetRadiant - v" RADIANT_VERSION " " __DATE__ "\n" );
+ printf( RADIANT_NAME " - v" RADIANT_VERSION " " __DATE__ "\n" );
ExpandWildcards( &argc, &argv );