Change _C_LABEL() to use proper underscoring depending on __ELF__ or not.

This commit is contained in:
tv 1998-07-01 02:35:24 +00:00
parent 131c70b10d
commit da26383918
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.5 1997/07/16 15:16:43 christos Exp $ */
/* $NetBSD: asm.h,v 1.6 1998/07/01 02:35:24 tv Exp $ */
/*
* Copyright (c) 1994 Allen Briggs
@ -44,11 +44,15 @@
#ifndef _ASM_H_
#define _ASM_H_
#ifdef __ELF__
#define _C_LABEL(name) name
#else
#ifdef __STDC__
#define _C_LABEL(name) _ ## name
#else
#define _C_LABEL(name) _/**/name
#endif
#endif
#define _ASM_LABEL(name) name
#ifdef PIC

View File

@ -1,4 +1,4 @@
/* $NetBSD: cdefs.h,v 1.5 1997/11/04 23:10:19 thorpej Exp $ */
/* $NetBSD: cdefs.h,v 1.6 1998/07/01 02:35:24 tv Exp $ */
/*
* Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
@ -8,7 +8,11 @@
#ifndef _MACHINE_CDEFS_H_
#define _MACHINE_CDEFS_H_
#ifdef __ELF__
#define _C_LABEL(x) x
#else
#define _C_LABEL(x) __CONCAT(_,x)
#endif
#ifdef __GNUC__
#define __RENAME(x) __asm__(___STRING(_C_LABEL(x)))