Revision 372c2c31 util/stun.c

View differences:

util/stun.c
46 46

  
47 47
#include <fcntl.h>
48 48

  
49
#ifndef WIN32
49
#ifndef _WIN32
50 50
#include <sys/ioctl.h>
51 51
#include <sys/socket.h>
52 52
#include <netdb.h>
......
679 679
#     error Need some way to seed the random number generator 
680 680
#endif 
681 681
      int seed = (int)(tick);
682
#ifdef WIN32
682
#ifdef _WIN32
683 683
      srand(seed);
684 684
#else
685 685
      srandom(seed);
......
696 696
stunGetSystemTimeSecs()
697 697
{
698 698
   UInt64 time=0;
699
#if defined(WIN32)  
699
#if defined(_WIN32)  
700 700
   SYSTEMTIME t;
701 701
   // CJ TODO - this probably has bug on wrap around every 24 hours
702 702
   GetSystemTime( &t );

Also available in: Unified diff