Fix Windows build
Fixed windef.h shadowing of 'max' definition and added LEAN_AND_MEAN definition for more lightweight build. Added missing 'functional' includes.
This commit is contained in:
parent
12af6e854a
commit
6782a7bfd4
|
|
@ -36,4 +36,8 @@ if(BUILD_TUTORIALS)
|
|||
endif()
|
||||
|
||||
set(AMQP-CPP_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
set(AMQP-CPP_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)
|
||||
set(AMQP-CPP_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)
|
||||
|
||||
if (WIN32)
|
||||
add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
#include <stdexcept>
|
||||
#include <utility>
|
||||
#include <iostream>
|
||||
#include <functional>
|
||||
|
||||
// base C include files
|
||||
#include <stdint.h>
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#include <unordered_map>
|
||||
#include <vector>
|
||||
#include <queue>
|
||||
#include <functional>
|
||||
|
||||
// forward declarations
|
||||
#include "../include/classes.h"
|
||||
|
|
|
|||
Loading…
Reference in New Issue