made ftdm_sched.c also work on win32

This commit is contained in:
Arnaldo M Pereira
2010-10-06 16:51:20 -03:00
parent 7d3c3c8437
commit 16b971f968
2 changed files with 44 additions and 17 deletions

View File

@@ -156,7 +156,12 @@ typedef __int64 int64_t;
typedef __int32 int32_t;
typedef __int16 int16_t;
typedef __int8 int8_t;
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
#else
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
#endif /* _MSC_VER */
#else /* __WINDOWS__ */
#define FTDM_INVALID_SOCKET -1
typedef int ftdm_socket_t;
#include <stdio.h>