]> git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/private.h
[ 1823588 ] gtk filedlg - droping support for gtk 2.2
[wxWidgets.git] / include / wx / unix / private.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/unix/private.h
3 // Purpose: miscellaneous private things for Unix wx ports
4 // Author: Vadim Zeitlin
5 // Created: 2005-09-25
6 // RCS-ID: $Id$
7 // Copyright: (c) 2005 Vadim Zeitlin <vadim@wxwindows.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_UNIX_PRIVATE_H_
12 #define _WX_UNIX_PRIVATE_H_
13
14 // standard linux headers produce many warnings when used with icc
15 #if defined(__INTELC__) && defined(__LINUX__)
16 inline void wxFD_ZERO(fd_set *fds)
17 {
18 #pragma warning(push)
19 #pragma warning(disable:593)
20 FD_ZERO(fds);
21 #pragma warning(pop)
22 }
23
24 inline void wxFD_SET(int fd, fd_set *fds)
25 {
26 #pragma warning(push, 1)
27 #pragma warning(disable:1469)
28 FD_SET(fd, fds);
29 #pragma warning(pop)
30 }
31
32 inline bool wxFD_ISSET(int fd, fd_set *fds)
33 {
34 #pragma warning(push, 1)
35 #pragma warning(disable:1469)
36 return FD_ISSET(fd, fds);
37 #pragma warning(pop)
38 }
39 inline bool wxFD_CLR(int fd, fd_set *fds)
40 {
41 #pragma warning(push, 1)
42 #pragma warning(disable:1469)
43 return FD_CLR(fd, fds);
44 #pragma warning(pop)
45 }
46 #else // !__INTELC__
47 #define wxFD_ZERO(fds) FD_ZERO(fds)
48 #define wxFD_SET(fd, fds) FD_SET(fd, fds)
49 #define wxFD_ISSET(fd, fds) FD_ISSET(fd, fds)
50 #define wxFD_CLR(fd, fds) FD_CLR(fd, fds)
51 #endif // __INTELC__/!__INTELC__
52
53
54 #endif // _WX_UNIX_PRIVATE_H_
55