summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorChristian Blichmann <cblichmann@google.com>2022-10-20 10:43:19 +0200
committerPeter LaFosse <peter@vector35.com>2022-11-10 16:20:26 -0500
commita46fea09fd927e165781d8936aa53e8bea69a78a (patch)
tree53e5ba6c5a4cb7c3426e413ce26ebcab29d8f5fb /binaryninjaapi.h
parentf91e7ddb4e9b376b1a73d538f10a37d1a2086c29 (diff)
Windows/MSVC: Avoid compiler warning if `NOMINMAX` is already set
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 9d79176a..2809ee7b 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -20,7 +20,9 @@
#pragma once
#ifdef WIN32
+#ifndef NOMINMAX
#define NOMINMAX
+#endif
#include <windows.h>
#endif
#include <stddef.h>