freetdm: open all media dumps as binary. Fixes Windows corrupted cores.

This commit is contained in:
Moises Silva
2010-12-14 16:55:40 -05:00
parent c6417fa2b3
commit 1c01144c20
3 changed files with 9 additions and 5 deletions

View File

@@ -158,12 +158,14 @@ typedef __int64 int64_t;
typedef __int32 int32_t;
typedef __int16 int16_t;
typedef __int8 int8_t;
#define FTDM_O_BINARY O_BINARY
#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_O_BINARY 0
#define FTDM_INVALID_SOCKET -1
typedef int ftdm_socket_t;
#include <stdio.h>