- More non-linux compatibility stuff.
This commit is contained in:
parent
0c1684e1f2
commit
b6d8930438
@ -10,19 +10,27 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "version.h"
|
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "switches.h"
|
#include "switches.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "specialterm.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;
|
extern struct tacnode *spdltac;
|
||||||
|
|
||||||
const char *progname = "scyther";
|
// Global
|
||||||
const char *releasetag = SVNVERSION;
|
|
||||||
|
|
||||||
char *lastfoundprefix = NULL;
|
char *lastfoundprefix = NULL;
|
||||||
|
|
||||||
// Forward declarations
|
// Forward declarations
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
#include "timer.h"
|
#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
|
#ifdef linux
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/times.h>
|
#include <sys/times.h>
|
||||||
@ -58,6 +64,6 @@ passed_time_limit ()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user