Generic macros for use in building libraries.