#Min/#Max Constants different on Windows and Linux
Posted: Mon Mar 25, 2013 8:02 pm
Hi,
today i wanted to use some #Min.../#Max... constants and found out that they are not defined equally on Windows and Linux. A few are defined on Windows, on Linux they are all missing. Some values have - from my opinion - wrong values.
I would like to see unique values for all operating systems.
Best regards
Uwe
today i wanted to use some #Min.../#Max... constants and found out that they are not defined equally on Windows and Linux. A few are defined on Windows, on Linux they are all missing. Some values have - from my opinion - wrong values.
Code: Select all
Constant Expected Value Windows Linux Remark
--------- -------------------- ----------- ----- ------------------------
#MINBYTE -128 no no
#MAXBYTE 127 yes no
#MINASCII 0 no no
#MAXASCII 255 no no
#MINWORD -32768 no no
#MAXWORD 32767 yes no
#MINCHAR 0 128? no
#MAXCHAR 255 127? no Unicode=65535
#MINLONG -2147483648 2147483648? no Windows=2147483648
#MAXLONG 2147483647 yes no
#MININT -2147483648 no no x64=-9223372036854775808
#MAXINT 2147483647 no no x64=9223372036854775807
#MINQUAD -9223372036854775808 no no
#MAXQUAD 9223372036854775807 no no
#MINDATE 0 no no
#MAXDATE 2147483647 no no
Best regards
Uwe