added macro for portable defining of constants