Merge pull request #194 from danielkrupinski/master

Adjust VMA_MIN() and VMA_MAX() macros to work despite NOMINMAX being defined or not.
diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h
index 401b711..59af0e2 100644
--- a/include/vk_mem_alloc.h
+++ b/include/vk_mem_alloc.h
@@ -116,10 +116,6 @@
     #define VMA_RECORDING_ENABLED 0

 #endif

 

-#if !defined(NOMINMAX) && defined(VMA_IMPLEMENTATION)

-    #define NOMINMAX // For windows.h

-#endif

-

 #if defined(__ANDROID__) && defined(VK_NO_PROTOTYPES) && VMA_STATIC_VULKAN_FUNCTIONS

     extern PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr;

     extern PFN_vkGetDeviceProcAddr vkGetDeviceProcAddr;

@@ -2382,11 +2378,11 @@
 #endif

 

 #ifndef VMA_MIN

-   #define VMA_MIN(v1, v2)    (std::min((v1), (v2)))

+   #define VMA_MIN(v1, v2)    ((std::min)((v1), (v2)))

 #endif

 

 #ifndef VMA_MAX

-   #define VMA_MAX(v1, v2)    (std::max((v1), (v2)))

+   #define VMA_MAX(v1, v2)    ((std::max)((v1), (v2)))

 #endif

 

 #ifndef VMA_SWAP