/* <syslib/cma_host.h>
 *
 *	OS/architecture-specific definitions for CMA services (V5.5).
 */
#ifndef _CMA_HOST_H
#define _CMA_HOST_H
# ifdef __cplusplus
extern "C" {
# endif

/* note: this file appears to be unused; probably superceded by exc_handling */

#include "sys$library:cma_host.h"

#ifdef __GNUC__
/*
   sys$library:cma_host.h doesn't check for VAX C and blindly uses
   #pragma builtins followed by _READ_GPR; fix up the fetch macro here;
   it's the same as the one in <exc_handling_vms.h>, except for its name.
 */
#undef cma__fetch_fp
/* return pointer to current condition handler, found at frame pointer */
#define cma__fetch_fp() \
 ({ cma_t_address _Fp; __asm __volatile ("movl (fp),%0" : "=g" (_Fp) : ); _Fp; })
#endif

# ifdef __cplusplus
}
# endif
#endif	/*_CMA_HOST_H*/
