Changeset 6051:13653593a569 in roaraudio


Ignore:
Timestamp:
01/02/15 16:00:02 (9 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

possible fix for win32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_stream.c

    r6036 r6051  
    3535 
    3636#include "libroar.h" 
     37 
     38#ifdef ROAR_TARGET_WIN32 
     39static inline int inet_aton(const char *s, struct in_addr *a) { 
     40 int b0, b1, b2, b3; 
     41 
     42 if (sscanf(s, "%d.%d.%d.%d", &b0, &b1, &b2, &b3) < 4) 
     43  return 0; 
     44 
     45 a->s_addr = inet_addr(s); 
     46 
     47 return a->s_addr != INADDR_NONE; 
     48} 
     49#endif 
    3750 
    3851static ssize_t _vio_stream_read    (struct roar_vio_calls * vio, void *buf, size_t count) { 
Note: See TracChangeset for help on using the changeset viewer.