For non-NetBSD, assume leading underscore with !__ELF__ (fixes PE-COFF)

This commit is contained in:
pooka 2013-01-17 21:12:39 +00:00
parent 56665b94f0
commit 90b354b7c2
1 changed files with 5 additions and 1 deletions

View File

@ -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 */