Unverified Commit b04c9797 authored by peizhou001's avatar peizhou001 Committed by GitHub
Browse files

[Graphbolt]Add nominmax macro in windows (#6794)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-21-218.ap-northeast-1.compute.internal>
parent e5199ac2
......@@ -8,12 +8,21 @@
#define GRAPHBOLT_SHARED_MEMORY_H_
#ifdef _WIN32
// Add the macro to avoid MIN/MAX conflict.
#ifndef NOMINMAX
#define NOMINMAX
#define GRAPHBOLT_WINDOWS_NOMINMAX_
#endif // NOMINMAX
#include <windows.h>
#endif // _WIN32
#include <memory>
#include <string>
#ifdef GRAPHBOLT_WINDOWS_NOMINMAX_
#undef NOMINMAX
#endif // GRAPHBOLT_WINDOWS_NOMINMAX_
namespace graphbolt {
namespace sampling {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment