Changeset 1729

Show
Ignore:
Timestamp:
03/18/07 17:51:32 (22 months ago)
Author:
aturner
Message:

don't use WIN32- it causes all sorts of problems. refs #110

Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r1722 r1729  
    3636AC_MSG_CHECKING([for cygwin development environment]) 
    3737if test `echo $target | grep -c cygwin` -gt 0 ; then 
    38    AC_DEFINE([WIN32], [1], [Windows/Cygwin]) 
     38   AC_DEFINE([HAVE_WIN32], [1], [Windows/Cygwin]) 
    3939   AC_MSG_RESULT(yes) 
    4040else 
  • trunk/src/common/get.c

    r1717 r1729  
    4949#endif 
    5050 
    51 #if defined HAVE_PCAP_VERSION && ! defined WIN32 
     51#if defined HAVE_PCAP_VERSION && ! defined HAVE_WIN32 
    5252extern const char pcap_version[]; 
    5353#endif 
  • trunk/src/config.h.in

    r1727 r1729  
    319319/* Define to 1 if you have the `vsnprintf' function. */ 
    320320#undef HAVE_VSNPRINTF 
     321 
     322/* Windows/Cygwin */ 
     323#undef HAVE_WIN32 
    321324 
    322325/* Do we have WinPcap? */ 
  • trunk/src/tcpreplay_opts.def

    r1717 r1729  
    204204    pcap_if_ptr = pcap_if; 
    205205    printf("%s", "Available network interfaces:\n"); 
    206 #ifdef WIN32  /* Win32 has alias/name/description */ 
     206#ifdef HAVE_WIN32  /* Win32 has alias/name/description */ 
    207207        printf("Alias\tName\n"); 
    208208#else 
     
    214214    while (pcap_if_ptr != NULL) { 
    215215        if (! pcap_if_ptr->flags & PCAP_IF_LOOPBACK) { 
    216 #ifdef WIN32 
     216#ifdef HAVE_WIN32 
    217217            printf("%%%d\t%s\n\t%s\n", i, pcap_if_ptr->name, pcap_if_ptr->description); 
    218218#else