]> git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/private.h
m_displayMode needs complete wxVideoMode.
[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 #else // !__INTELC__
40 #define wxFD_ZERO(fds) FD_ZERO(fds)
41 #define wxFD_SET(fd, fds) FD_SET(fd, fds)
42 #define wxFD_ISSET(fd, fds) FD_ISSET(fd, fds)
43 #endif // __INTELC__/!__INTELC__
44
45
46 #endif // _WX_UNIX_PRIVATE_H_
47