Changeset 3180:6f606ed52506 in roaraudio


Ignore:
Timestamp:
01/15/10 23:27:00 (10 years ago)
Author:
phi
Branch:
default
Message:

get it to build (not to work) on cygwin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaross/libroaross.c

    r3178 r3180  
    7979#define IOCTL() int _oss_ioctl __P((int fd, unsigned long com, void *argp)) 
    8080#define map_args int __fd = fd; unsigned long int __request = com 
     81#elif defined(ROAR_TARGET_CYGWIN) 
     82#define IOCTL() int ioctl (int __fd, int __cmd, ...) 
     83#define map_args unsigned long int __request = __cmd; void * argp 
     84#define va_argp 
     85#define ioctl_lastarg __cmd 
    8186#else 
    8287#define IOCTL() int ioctl (int __fd, unsigned long int __request, ...) 
    8388#define map_args void * argp 
    8489#define va_argp 
     90#define ioctl_lastarg __request 
    8591#endif 
    8692 
     
    817823 
    818824#ifdef va_argp 
    819  va_start (args, __request); 
     825 va_start (args, ioctl_lastarg); 
    820826 argp = va_arg (args, void *); 
    821827 va_end (args); 
Note: See TracChangeset for help on using the changeset viewer.