cpenny42 / juce_mongoose

A JUCE Module containing C++ Bindings for the popular mongoose lightweight web server
4 stars 2 forks source link

add #define NOGDI and #define NOMINMAX in juce_mongoose.h to avoid ambiguous calls to Rectangle and std::min/max #1

Closed benkuper closed 5 years ago

benkuper commented 5 years ago

Reference thread of the problem : https://forum.juce.com/t/rectangle-ambiguous-symbol/6891/5 I have other modules that are not explicitly using juce::Rectangle, using this module creates ambiguous call compile errors. Just adding #define NOGDI and #define NOMINMAX in juce_mongoose.h, line 26 resolves it :

#pragma once
#define JUCE_MONGOOSE_H_INCLUDED
#define NOGDI 
#define NOMINMAX
cpenny42 commented 5 years ago

Thanks! Just pushed your fix.