Ticket #20367: 100-fix-cxx-include-order.patch

File 100-fix-cxx-include-order.patch, 1.7 KB (added by lxrfvg, 2 years ago)
  • src/mtrie.cpp

    a b  
    1717    along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    1818*/ 
    1919 
    20 #include <stdlib.h> 
    21  
    2220#include <new> 
    2321#include <algorithm> 
    2422 
     23#include <stdlib.h> 
     24 
    2525#include "platform.hpp" 
    2626#if defined ZMQ_HAVE_WINDOWS 
    2727#include "windows.hpp" 
  • src/raw_encoder.cpp

    a b  
    1717    along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    1818*/ 
    1919 
     20#include <basic_definitions> 
     21#include <exception> 
     22#include <cstddef> 
     23#include <algorithm> 
     24 
    2025#include "encoder.hpp" 
    2126#include "raw_encoder.hpp" 
    2227#include "likely.hpp" 
  • src/trie.cpp

    a b  
    1717    along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    1818*/ 
    1919 
    20 #include <stdlib.h> 
    21  
    2220#include <new> 
    2321#include <algorithm> 
    2422 
     23#include <stdlib.h> 
     24 
    2525#include "platform.hpp" 
    2626#if defined ZMQ_HAVE_WINDOWS 
    2727#include "windows.hpp" 
  • src/encoder.hpp

    a b  
    2929#include <stddef.h> 
    3030#include <string.h> 
    3131#include <stdlib.h> 
    32 #include <algorithm> 
    3332 
    3433#include "err.hpp" 
    3534#include "msg.hpp" 
  • src/v1_encoder.cpp

    a b  
    1717    along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    1818*/ 
    1919 
     20#include <basic_definitions> 
     21#include <exception> 
     22#include <cstddef> 
     23#include <algorithm> 
     24 
    2025#include "encoder.hpp" 
    2126#include "v1_encoder.hpp" 
    2227#include "likely.hpp" 
  • src/v2_encoder.cpp

    a b  
    1717    along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    1818*/ 
    1919 
     20#include <basic_definitions> 
     21#include <exception> 
     22#include <cstddef> 
     23#include <algorithm> 
     24 
    2025#include "v2_protocol.hpp" 
    2126#include "v2_encoder.hpp" 
    2227#include "likely.hpp"