Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/minhook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriFarbod <ifarbod@users.noreply.github.com>2016-11-08 20:18:59 +0300
committerGitHub <noreply@github.com>2016-11-08 20:18:59 +0300
commit7a6b24bc459736b09f1ff49cd33d9d6e86ef7584 (patch)
treee1a9e53c08b1ac157a2dfbc7d416683d28ab8691
parent83988a65d957c1c046f24f6b1b14187a58667e1a (diff)
Fix NOMINMAX macro redefinition compiler warning
My project defines NOMINMAX project wide, so I had to do this to minhook to suppress the warning.
-rw-r--r--src/buffer.c4
1 files changed, 4 insertions, 0 deletions
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 <windows.h>
#include "buffer.h"