Various portability fixes mosty for MSVC which doesn't have drand and

doesn't allow dynamic local arrays.
v_fragment -> v_fragment_t
libcdio.sym: more external symbols defined
/lib/_cdio_linux.c: harmless type mismatch
example/sample2.c -> example/device.c
This commit is contained in:
rocky
2005-02-06 15:09:10 +00:00
parent 392478e776
commit 6618a05537
11 changed files with 69 additions and 58 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: portable.h,v 1.1 2004/12/18 17:29:32 rocky Exp $
$Id: portable.h,v 1.2 2005/02/06 15:09:10 rocky Exp $
Copyright (C) Rocky Bernstein <rocky@panix.com>
@@ -49,6 +49,10 @@
# endif
#endif /*HAVE_SNPRINTF*/
#if !defined(HAVE_DRAND48) && defined(HAVE_RAND)
# define drand48() (rand() / (double)RAND_MAX)
#endif
#ifdef MSVC
# include <io.h>