Fixes for Mingw+MSYS and DLL support from Carlo Bramini
* configure.ac: Added AC_LIBTOOL_WIN32_DLL for enabling the creation of shared libraries. * configure.ac: Added -I$(top_srcdir)/include to LIBCDIO_CFLAGS, it allows to build outside the source tree. * configure.ac: Added LT_NO_UNDEFINED for adding '-no-undefined' switch to libtool when building win32 shared libraries. * configure.ac: Check for Windows.h presence if under Mingw (included for using Sleep() function). * configure.ac: Check for more missing functions: setenv(), unsetenv(), sleep(), gmtime_r(), localtime_r(). * example/cdchange.c: If sleep() function does not exist, it tries to emulate it with a similar code (require inclusion of Windows.h) * src/cddb.c: * lib/cdda_interface/scsi_interface.c: Compilation fails because u_int32_t is undefined. It has been changed to uint32_t to be compliant to all other parts of the libraries. * lib/cdda_interface/Makefile.am: * lib/iso9660/Makefile.am: * lib/cdio++/Makefile.am: * lib/paranoia/Makefile.am: * lib/udf/Makefile.am: * lib/driver/Makefile.am: added LT_NO_UNDEFINED to libtool flags. * lib/iso9660/iso9660.c: Added replacements for setenv(), unsetenv(), gmtime_r\ (), localtime_r().
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: cddb.c,v 1.7 2008/04/14 17:30:27 karl Exp $
|
||||
$Id: cddb.c,v 1.8 2008/06/25 08:01:54 rocky Exp $
|
||||
|
||||
Copyright (C) 2005, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
@@ -47,7 +47,7 @@ cddb_dec_digit_sum(int n)
|
||||
the total length of the disk, and
|
||||
the number of tracks.
|
||||
*/
|
||||
u_int32_t
|
||||
uint32_t
|
||||
cddb_discid(CdIo_t *p_cdio, track_t i_tracks)
|
||||
{
|
||||
int i,t,n=0;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: cddb.h,v 1.5 2008/04/14 17:30:27 karl Exp $
|
||||
$Id: cddb.h,v 1.6 2008/06/25 08:01:54 rocky Exp $
|
||||
|
||||
Copyright (C) 2005, 2007, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
@@ -37,7 +37,7 @@ cddb_opts_t cddb_opts;
|
||||
the total length of the disk, and
|
||||
the number of tracks.
|
||||
*/
|
||||
u_int32_t cddb_discid(CdIo_t *p_cdio, track_t i_tracks);
|
||||
uint32_t cddb_discid(CdIo_t *p_cdio, track_t i_tracks);
|
||||
|
||||
#ifdef HAVE_CDDB
|
||||
#include <cddb/cddb.h>
|
||||
|
||||
Reference in New Issue
Block a user