-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathconfig.h.msvc
More file actions
37 lines (31 loc) · 1.18 KB
/
config.h.msvc
File metadata and controls
37 lines (31 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// config.h
// SPECIAL HAND CRAFTED CONFIG.H FOR MSVC
// 20121016 - After removal of 'build' folder, and all automake pieces, add back this as config.h.msvc
// 20120623 - Bumped verions, to agree with configure.ac
// 20120322 - update using pthreads for telnet
// 20110812 - updated with latest source - updfgms-stable.bat
// 20110324 - hand crafted for MSVC
#ifndef _FGMS_CONFIG_H_
#define _FGMS_CONFIG_H_
#pragma warning ( disable : 4996 ) // remove warning "The POSIX name for this item is depreciated" ...
#pragma warning ( disable : 4244 ) // conversion from 'a' to 'b', possible loss of data
#include <sys/types.h>
#include <sys/stat.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <time.h>
#ifndef VERSION
#define VERSION "0.10.23-WIN32" // UPD20121026 - Should agree with AGE etc in CMakeLists.txt
#endif
#define sleep(a) Sleep(a * 1000)
#define strcasecmp strcmp
#define strncasecmp _strnicmp
#if (defined(_MSC_VER) && (_MSC_VER < 1900))
#define snprintf _snprintf
#endif // for older MSVC
#define unlink _unlink
/* Now REQUIRED <pthread.h>, and the pthreadVC2.lib and dll */
#define HAVE_PTHREAD_H 1
#define HAVE_STRUCT_TIMESPEC 1
#endif // #ifndef _FGMS_CONFIG_H_
// eof - config.h