Skip to content

Commit

Permalink
Kill min and max macros to close #995
Browse files Browse the repository at this point in the history
  • Loading branch information
ibell committed Mar 13, 2016
1 parent 06f8041 commit 545cbab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/CPnumerics.h
Expand Up @@ -33,6 +33,10 @@ inline bool ValidNumber(double x)
#define COOLPROP_OK 1
#endif

// Undefine these terrible macros defined in windows header
#undef min
#undef max

/// Make a linearly spaced vector of points
template <typename T> std::vector<T> linspace(T xmin, T xmax, std::size_t n) {
std::vector<T> x(n, 0.0);
Expand Down

0 comments on commit 545cbab

Please sign in to comment.