summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Common.h
blob: 279306a2f2d5c3a1d0b476a78768031fcb14bd49 (plain)
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
#ifndef COMMON_H_YZ3CIYP
#define COMMON_H_YZ3CIYP

#ifdef _WIN32
#include <winsock2.h>
// see http://stackoverflow.com/questions/1372480/c-redefinition-header-files
#define _WINSOCKAPI_    // stops windows.h including winsock.h
#include <windows.h>
#else
#include <sys/socket.h>
#endif

#if defined(_MSC_VER)
// disable signed / unsigned comparison warnings
#pragma warning (disable : 4018)
// possible loss of data
#pragma warning (disable : 4244)
#pragma warning (disable : 4267)
// 'this' : used in base member initializer list
#pragma warning (disable : 4355)

// is thrown alot in arabica headers
#pragma warning (disable : 4240)
#pragma warning (disable : 4250)

#endif


#endif /* end of include guard: COMMON_H_YZ3CIYP */