From 1033f2818a2463a54895607e49da164b2e3ed5c9 Mon Sep 17 00:00:00 2001 From: Duarte Silva Date: Wed, 8 Jul 2015 09:59:00 +0100 Subject: [PATCH 1/2] Fixed warning "Please include winsock2.h before windows.h" --- pafish/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pafish/utils.c b/pafish/utils.c index 8554d02..10e066d 100644 --- a/pafish/utils.c +++ b/pafish/utils.c @@ -3,9 +3,9 @@ #include #include +#include #include #include -#include #include #include From 93f25aa6dcf2cc0182427058eb796b813a56ca42 Mon Sep 17 00:00:00 2001 From: Duarte Silva Date: Wed, 8 Jul 2015 10:01:28 +0100 Subject: [PATCH 2/2] Fixed warning about redefined variables - "KEY_WOW64_32KEY" redefined - "KEY_WOW64_64KEY" redefined --- pafish/utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pafish/utils.c b/pafish/utils.c index 10e066d..bace44e 100644 --- a/pafish/utils.c +++ b/pafish/utils.c @@ -12,8 +12,13 @@ #include "utils.h" #include "types.h" +#ifndef KEY_WOW64_32KEY #define KEY_WOW64_32KEY 0x0200 +#endif + +#ifndef KEY_WOW64_64KEY #define KEY_WOW64_64KEY 0x0100 +#endif /** * Prototypes for the Wow64 API's since they aren't available in all Windows