This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: cdrecord: Anyone built under Cygwin?
I've just compiled "cdrtools-1.10a04.tar.gz" with cygwin-1.1.5.
>>cdrecord.c:
>>
>>#ifdef __CYGWIN32__
>>
>>/*
>> * NOTE: Base.h has a second typedef for BOOL.
>> * We define BOOL to make all local code use BOOL
>> * from Windows.h and use the hidden __SBOOL for
>> * our global interfaces.
>> */
>>#define BOOL WBOOL /* This is the Win BOOL */
>>#define format __format
>>#include <vadefs.h>
>>#include <Windows32/Base.h>
>>#include <Windows32/Defines.h>
>>#include <Windows32/Structures.h>
>>#include <Windows32/Functions.h>
>>#undef format
change following...
//-----
#define BOOL WBOOL /* This is the Win BOOL */
#define format __format
#include <vadefs.h>
#ifndef _ANONYMOUS_UNION
#define _UNION_NAME(x) x
#define DUMMYUNIONNAME u
#define DUMMYUNIONNAME2 u2
#define DUMMYUNIONNAME3 u3
#define DUMMYUNIONNAME4 u4
#define DUMMYUNIONNAME5 u5
#define DUMMYUNIONNAME6 u6
#define DUMMYUNIONNAME7 u7
#define DUMMYUNIONNAME8 u8
#else
#define _UNION_NAME(x)
#define DUMMYUNIONNAME
#define DUMMYUNIONNAME2
#define DUMMYUNIONNAME3
#define DUMMYUNIONNAME4
#define DUMMYUNIONNAME5
#define DUMMYUNIONNAME6
#define DUMMYUNIONNAME7
#define DUMMYUNIONNAME8
#endif
#ifndef _ANONYMOUS_STRUCT
#define _STRUCT_NAME(x) x
#define DUMMYSTRUCTNAME s
#define DUMMYSTRUCTNAME2 s2
#define DUMMYSTRUCTNAME3 s3
#else
#define _STRUCT_NAME(x)
#define DUMMYSTRUCTNAME
#define DUMMYSTRUCTNAME2
#define DUMMYSTRUCTNAME3
#endif
#include <windef.h>
#include <wincon.h>
#include <winbase.h>
#undef format
//----------
... and "librscg/scsi-remote.c"
#define USE_REMOTE ---> /* #define USE_REMOTE */
Then ... run make.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com