make cygwin -mno-cygwin work.

This commit is contained in:
rocky
2004-03-11 01:31:32 +00:00
parent 0470ada14e
commit 541015e05c
2 changed files with 12 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/* /*
$Id: sample6.c,v 1.4 2004/02/04 10:22:01 rocky Exp $ $Id: sample6.c,v 1.5 2004/03/11 01:31:32 rocky Exp $
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com> Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
@@ -21,6 +21,11 @@
/* Simple program to show using libiso9660 to extract a file from a /* Simple program to show using libiso9660 to extract a file from a
cue/bin CD-IMAGE. cue/bin CD-IMAGE.
*/ */
#if defined ( WIN32 )
#define ftruncate chsize
#endif
/* This is the CD-image with an ISO-9660 filesystem */ /* This is the CD-image with an ISO-9660 filesystem */
#define ISO9660_IMAGE_PATH "../" #define ISO9660_IMAGE_PATH "../"
#define ISO9660_IMAGE ISO9660_IMAGE_PATH "test/isofs-m1.cue" #define ISO9660_IMAGE ISO9660_IMAGE_PATH "test/isofs-m1.cue"

View File

@@ -1,5 +1,5 @@
/* /*
$Id: sample7.c,v 1.4 2004/02/26 00:13:24 rocky Exp $ $Id: sample7.c,v 1.5 2004/03/11 01:31:32 rocky Exp $
Copyright (C) 2004 Rocky Bernstein <rocky@panix.com> Copyright (C) 2004 Rocky Bernstein <rocky@panix.com>
@@ -21,6 +21,11 @@
/* Simple program to show using libiso9660 to extract a file from an /* Simple program to show using libiso9660 to extract a file from an
ISO-9660 image. ISO-9660 image.
*/ */
#if defined ( WIN32 )
#define ftruncate chsize
#endif
/* This is the ISO 9660 image. */ /* This is the ISO 9660 image. */
#define ISO9660_IMAGE_PATH "../" #define ISO9660_IMAGE_PATH "../"
#define ISO9660_IMAGE ISO9660_IMAGE_PATH "test/copying.iso" #define ISO9660_IMAGE ISO9660_IMAGE_PATH "test/copying.iso"