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
|
|
@ -37,3 +37,7 @@ endif()
|
||||||
|
|
||||||
set(AMQP-CPP_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
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 <stdexcept>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
// base C include files
|
// base C include files
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
// forward declarations
|
// forward declarations
|
||||||
#include "../include/classes.h"
|
#include "../include/classes.h"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue