Changeset 2862:2d315f977ed3 in roaraudio


Ignore:
Timestamp:
10/05/09 13:56:42 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

test for ROAR_HAVE_H_POLL (needed for example on win32)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/events.c

    r2859 r2862  
    3737 
    3838int    sio_nfds   (struct sio_hdl * hdl) { 
     39#ifdef ROAR_HAVE_H_POLL 
    3940 int fh = -1; 
    4041 
     
    5152 
    5253 return 1; 
     54#else 
     55 return 0; 
     56#endif 
    5357} 
    5458 
    5559int    sio_pollfd (struct sio_hdl * hdl, struct pollfd * pfd, int events) { 
     60#ifdef ROAR_HAVE_H_POLL 
    5661 int num; 
    5762 int fh; 
     
    8186 
    8287 return num; 
     88#else 
     89 return 0; 
     90#endif 
    8391} 
    8492 
    8593int    sio_revents(struct sio_hdl * hdl, struct pollfd * pfd) { 
     94#ifdef ROAR_HAVE_H_POLL 
    8695 short revents = 0; 
    8796 int num; 
     
    97106 
    98107 return revents; 
     108#else 
     109 return 0; 
     110#endif 
    99111} 
    100112 
Note: See TracChangeset for help on using the changeset viewer.