Permalink
Commits on May 2, 2015
  1. Fix CLAMP macro overwritten by glib headers

    forivall committed May 1, 2015
    Fixes #188
    
    When I moved the macro definition below all of the includes, I got the
    following compiler warning:
    
    /usr/include/glib-2.0/glib/gmacros.h:246:0: note: this is the location
    of the previous definition
     #define CLAMP(x, low, high)  (((x) > (high)) ? (high) : (((x) < (low))
    ? (low) : (x)))
    
    So, that's the macro definition that was being used whenever "CLAMP" was
    used. It's pretty obvious what went wrong.