New template fpRadix instead of the exported var FP_RADIX

This commit is contained in:
Maurizio Tomasi
2015-03-11 11:08:37 +01:00
parent 9c113b5264
commit cf1a801e31

View File

@@ -102,7 +102,9 @@ proc feupdateenv*(envp: ptr Tfenv): cint {.importc, header: "<fenv.h>".}
## represented by object pointed to by `envp` and raise exceptions
## according to saved exceptions.
var FP_RADIX* {. importc: "FLT_RADIX" header: "<float.h>" .} : int
var FP_RADIX_INTERNAL {. importc: "FLT_RADIX" header: "<float.h>" .} : int
template fpRadix* : int = FLT_RADIX_INTERNAL
## The (integer) value of the radix used to represent any floating
## point type on the architecture used to build the program.