blitz-research / blitzmax

BlitzMax
Other
152 stars 55 forks source link

Rename `min()` to `_min()` to prevent collision #15

Closed valentin-huebner closed 5 years ago

valentin-huebner commented 6 years ago

This fixes a compiler error of "min was not declared in this scope".

This commit also modifies several other lines in mod/maxgui.mod/fltkmaxgui.mod/src/fl_draw.cxx, where trailing whitespace was removed.

chtisgit commented 6 years ago

I had problems with compiling fltkmaxgui too and went with the same solution but another name for min (min_). Though, it seems to depend on the mingw version that you use whether the name min can be used. edit: clarification

valentin-huebner commented 6 years ago

Ok, good to know. I compiled with gcc 7.2.0 when I got the errors.