mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 16:06:09 +00:00
Problem: C4627 warning in proxy.cpp and signaler.cpp
Solution: move conditional include directive to precompiled.hpp
This commit is contained in:
parent
a8095a1046
commit
c52871f82c
@ -30,6 +30,16 @@
|
|||||||
#ifndef __ZMQ_PRECOMPILED_HPP_INCLUDED__
|
#ifndef __ZMQ_PRECOMPILED_HPP_INCLUDED__
|
||||||
#define __ZMQ_PRECOMPILED_HPP_INCLUDED__
|
#define __ZMQ_PRECOMPILED_HPP_INCLUDED__
|
||||||
|
|
||||||
|
// On AIX platform, poll.h has to be included first to get consistent
|
||||||
|
// definition of pollfd structure (AIX uses 'reqevents' and 'retnevents'
|
||||||
|
// instead of 'events' and 'revents' and defines macros to map from POSIX-y
|
||||||
|
// names to AIX-specific names).
|
||||||
|
// zmq.h must be included *after* poll.h for AIX to build properly.
|
||||||
|
// precompiled.hpp includes include/zmq.h
|
||||||
|
#if defined ZMQ_POLL_BASED_ON_POLL && defined ZMQ_HAVE_AIX
|
||||||
|
#include <poll.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "platform.hpp"
|
#include "platform.hpp"
|
||||||
|
|
||||||
#define __STDC_LIMIT_MACROS
|
#define __STDC_LIMIT_MACROS
|
||||||
|
@ -27,17 +27,8 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// On AIX platform, poll.h has to be included first to get consistent
|
|
||||||
// definition of pollfd structure (AIX uses 'reqevents' and 'retnevents'
|
|
||||||
// instead of 'events' and 'revents' and defines macros to map from POSIX-y
|
|
||||||
// names to AIX-specific names).
|
|
||||||
// zmq.h must be included *after* poll.h for AIX to build properly.
|
|
||||||
// precompiled.hpp includes include/zmq.h
|
|
||||||
#if defined ZMQ_POLL_BASED_ON_POLL && defined ZMQ_HAVE_AIX
|
|
||||||
#include <poll.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "poller.hpp"
|
#include "poller.hpp"
|
||||||
#include "proxy.hpp"
|
#include "proxy.hpp"
|
||||||
|
@ -27,16 +27,6 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// On AIX, poll.h has to be included before zmq.h to get consistent
|
|
||||||
// definition of pollfd structure (AIX uses 'reqevents' and 'retnevents'
|
|
||||||
// instead of 'events' and 'revents' and defines macros to map from POSIX-y
|
|
||||||
// names to AIX-specific names).
|
|
||||||
// zmq.h must be included *after* poll.h for AIX to build properly.
|
|
||||||
// precompiled.hpp includes include/zmq.h
|
|
||||||
#if defined ZMQ_POLL_BASED_ON_POLL && defined ZMQ_HAVE_AIX
|
|
||||||
#include <poll.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "poller.hpp"
|
#include "poller.hpp"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user