Commit based upon d6442850bde61f0c3e7e2ae3247b4a856073c5e0
[librecmc/package-feed.git] / libs / zmq / patches / 100-fix-cxx-include-order.patch
1 --- a/src/mtrie.cpp
2 +++ b/src/mtrie.cpp
3 @@ -27,11 +27,11 @@
4      along with this program.  If not, see <http://www.gnu.org/licenses/>.
5  */
6  
7 -#include <stdlib.h>
8 -
9  #include <new>
10  #include <algorithm>
11  
12 +#include <stdlib.h>
13 +
14  #include "platform.hpp"
15  #if defined ZMQ_HAVE_WINDOWS
16  #include "windows.hpp"
17 --- a/src/raw_encoder.cpp
18 +++ b/src/raw_encoder.cpp
19 @@ -27,6 +27,11 @@
20      along with this program.  If not, see <http://www.gnu.org/licenses/>.
21  */
22  
23 +#include <basic_definitions>
24 +#include <exception>
25 +#include <cstddef>
26 +#include <algorithm>
27 +
28  #include "encoder.hpp"
29  #include "raw_encoder.hpp"
30  #include "likely.hpp"
31 --- a/src/trie.cpp
32 +++ b/src/trie.cpp
33 @@ -27,11 +27,11 @@
34      along with this program.  If not, see <http://www.gnu.org/licenses/>.
35  */
36  
37 -#include <stdlib.h>
38 -
39  #include <new>
40  #include <algorithm>
41  
42 +#include <stdlib.h>
43 +
44  #include "platform.hpp"
45  #if defined ZMQ_HAVE_WINDOWS
46  #include "windows.hpp"
47 --- a/src/encoder.hpp
48 +++ b/src/encoder.hpp
49 @@ -39,7 +39,6 @@
50  #include <stddef.h>
51  #include <string.h>
52  #include <stdlib.h>
53 -#include <algorithm>
54  
55  #include "err.hpp"
56  #include "msg.hpp"
57 --- a/src/v1_encoder.cpp
58 +++ b/src/v1_encoder.cpp
59 @@ -27,6 +27,11 @@
60      along with this program.  If not, see <http://www.gnu.org/licenses/>.
61  */
62  
63 +#include <basic_definitions>
64 +#include <exception>
65 +#include <cstddef>
66 +#include <algorithm>
67 +
68  #include "encoder.hpp"
69  #include "v1_encoder.hpp"
70  #include "likely.hpp"
71 --- a/src/v2_encoder.cpp
72 +++ b/src/v2_encoder.cpp
73 @@ -27,6 +27,11 @@
74      along with this program.  If not, see <http://www.gnu.org/licenses/>.
75  */
76  
77 +#include <basic_definitions>
78 +#include <exception>
79 +#include <cstddef>
80 +#include <algorithm>
81 +
82  #include "v2_protocol.hpp"
83  #include "v2_encoder.hpp"
84  #include "likely.hpp"