diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/precompiled.cpp | 21 | ||||
-rw-r--r-- | src/precompiled.hpp | 47 | ||||
-rw-r--r-- | src/windows.hpp | 3 |
3 files changed, 71 insertions, 0 deletions
diff --git a/src/precompiled.cpp b/src/precompiled.cpp new file mode 100644 index 0000000..3b2e52d --- /dev/null +++ b/src/precompiled.cpp @@ -0,0 +1,21 @@ +/* + Copyright (c) 2011 250bpm s.r.o. + Copyright (c) 2011 Other contributors as noted in the AUTHORS file + + This file is part of 0MQ. + + 0MQ is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + 0MQ is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include "precompiled.hpp" diff --git a/src/precompiled.hpp b/src/precompiled.hpp new file mode 100644 index 0000000..aeea3cd --- /dev/null +++ b/src/precompiled.hpp @@ -0,0 +1,47 @@ +/* + Copyright (c) 2011 250bpm s.r.o. + Copyright (c) 2011 Other contributors as noted in the AUTHORS file + + This file is part of 0MQ. + + 0MQ is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + 0MQ is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __ZMQ_PRECOMPILED_HPP_INCLUDED__ +#define __ZMQ_PRECOMPILED_HPP_INCLUDED__ + +#ifdef _MSC_VER + +// Windows headers +#include "platform.hpp" +#include "windows.hpp" +#include <fcntl.h> +#include <intrin.h> +#include <io.h> +#include <rpc.h> +#include <sys/stat.h> + +// standard C++ headers +#include <algorithm> +#include <map> +#include <set> +#include <string> +#include <vector> + +// 0MQ definitions and exported functions +#include "../include/zmq.h" + +#endif // _MSC_VER + +#endif diff --git a/src/windows.hpp b/src/windows.hpp index da69b47..f5f946c 100644 --- a/src/windows.hpp +++ b/src/windows.hpp @@ -25,6 +25,9 @@ // The purpose of this header file is to turn on only the items actually // needed on the windows platform. +#ifndef _CRT_SECURE_NO_WARNINGS +#define _CRT_SECURE_NO_WARNINGS +#endif #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif |