Changeset 1072:609b5f361ad8 in roaraudio


Ignore:
Timestamp:
12/28/08 17:43:41 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use diffrent headers for target win32

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1071 r1072  
    4646ALAW_RW=true 
    4747MULAW_RW=true 
     48 
     49TARGET_WIN32=false 
    4850 
    4951echo -n "checking for C compiler... " 
     
    199201   RUNTIME_DETECT=true 
    200202   no_lib_dnet=true 
     203   TARGET_WIN32=true 
    201204  ;; 
    202205 esac; 
     
    380383 $MULAW    && echo '#define ROAR_SUPPORT_MULAW' 
    381384 $MULAW_RW && echo '#define ROAR_SUPPORT_MULAW_RW' 
     385 $TARGET_WIN32 && echo '#define ROAR_TARGET_WIN32' 
    382386 echo 
    383387} >&3 
  • include/roaraudio.h

    r988 r1072  
    4343#include <sys/stat.h> 
    4444 
     45#ifdef ROAR_TARGET_WIN32 
     46#include <winsock2.h> 
     47#else 
    4548#include <arpa/inet.h> 
    4649 
     
    4952#include <netinet/tcp.h> 
    5053#include <sys/un.h> 
     54#endif 
    5155 
    5256#ifdef __NetBSD__ 
Note: See TracChangeset for help on using the changeset viewer.