Skip to content

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

Closed
@orennitzan

Description

@orennitzan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions