- More non-linux compatibility stuff.

This commit is contained in:
ccremers 2006-08-02 09:32:29 +00:00
parent 0c1684e1f2
commit b6d8930438
2 changed files with 20 additions and 6 deletions

View File

@ -10,19 +10,27 @@
#include <limits.h>
#include "system.h"
#include "debug.h"
#include "version.h"
#include "timer.h"
#include "switches.h"
#include "error.h"
#include "specialterm.h"
struct switchdata switches;
// Program name
const char *progname = "scyther";
// We only have the version thing under linux
#ifdef linux
#include "version.h"
const char *releasetag = SVNVERSION;
#else
const char *releasetag = "Non-linux";
#endif
// Structures
struct switchdata switches;
extern struct tacnode *spdltac;
const char *progname = "scyther";
const char *releasetag = SVNVERSION;
// Global
char *lastfoundprefix = NULL;
// Forward declarations

View File

@ -1,5 +1,11 @@
#include "timer.h"
/*
* Timer functions
*
* Currently, this only works under linux (where the linux macro is defined by the compiler). Otherwise, it simply assumes the timer is never passed.
*/
#ifdef linux
#include <time.h>
#include <sys/times.h>