For non-NetBSD, assume leading underscore with !__ELF__ (fixes PE-COFF)
This commit is contained in:
parent
56665b94f0
commit
90b354b7c2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rump_syscalls_compat.h,v 1.8 2012/07/20 09:10:23 pooka Exp $ */
|
||||
/* $NetBSD: rump_syscalls_compat.h,v 1.9 2013/01/17 21:12:39 pooka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
|
||||
|
@ -54,7 +54,11 @@
|
|||
#else /* !__NetBSD__ */
|
||||
|
||||
#ifndef __RENAME
|
||||
#ifdef __ELF
|
||||
#define __RUMPSTRINGIFY(x) #x
|
||||
#else
|
||||
#define __RUMPSTRINGIFY(x) "_"#x
|
||||
#endif /* __ELF__ */
|
||||
#define __RENAME(x) __asm(__RUMPSTRINGIFY(x))
|
||||
#endif /* __RENAME */
|
||||
|
||||
|
|
Loading…
Reference in New Issue