Portable definition of function attributes

Addition of some portable definitions for function attributes.