Several system macros, such as INT_MAX and FLT_MAX were being defined locally instead of using system header files to obtain them. These definitions were causing warnings when the system header was included.
Also the macro MAXPOSINT was removed since it was being defined as INT_MAX, and in its only use, INT_MAX was always the appropriate value.
Code for this patch can be found in branch beta_jdm.