From 7a6b24bc459736b09f1ff49cd33d9d6e86ef7584 Mon Sep 17 00:00:00 2001 From: iFarbod Date: Tue, 8 Nov 2016 20:48:59 +0330 Subject: Fix NOMINMAX macro redefinition compiler warning My project defines NOMINMAX project wide, so I had to do this to minhook to suppress the warning. --- src/buffer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/buffer.c b/src/buffer.c index b191ece..c82974a 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -26,8 +26,12 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef STRICT #define STRICT +#endif +#ifndef NOMINMAX #define NOMINMAX +#endif #define _WIN32_WINNT 0x0501 #include #include "buffer.h" -- cgit v1.2.3