redis-plus-plus fails to compile if prior to it's include the code includes <windows.h> and / or <shlwapi.h> (original) (raw)

Hi,
This is a nasty one.
I spent 3 days on it.
The problem:
When I include redis-plus-plus after some include that has, down the line includes of <windows.h> and / or <shlwapi.h>
The project will not compile and give errors like i forgot to put semicolon somewhere.
When commented it compiles fine.
When redis-plus-plus is included before those, also everything is fine.

// This is fine
#include <sw/redis++/redis++.h>
#include <windows.h>

// This will breake
#include <windows.h>
#include <sw/redis++/redis++.h>

Any idea?
Thanks