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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user