Make compatible with xcode 3

This commit is contained in:
bossiel 2012-06-28 01:40:11 +00:00
parent dc4a18dbfa
commit ef0e25269a
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@
#include "tsk_memory.h"
#include "tsk_debug.h"
#include <stdlib.h>
#include <string.h>
#ifdef _MSC_VER
static double drand48() { return (((double)rand()) / RAND_MAX); }
static void srand48(long sv) { srand((unsigned int) sv); }