From 4875a4b66eabdfee2d9186a694ea3599f19a51ed Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 10 Sep 2004 08:30:51 +0000 Subject: * Makefile.in: Create libutil.a from bsdlib.o exports. * bsdlib.cc (logwtmp): Move from syscalls.cc to here. (login): Ditto. (logout): Ditto. * winsup.h (EXPORT_ALIAS): New macro. * exec.cc: Define alias symbols using EXPORT_ALIAS macro. * syscalls.cc: Ditto. * times.cc: Ditto. --- winsup/cygwin/winsup.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/winsup.h') diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 2c89ef4a7..bee5fa2ec 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -32,6 +32,8 @@ details. */ #define NO_COPY __attribute__((nocommon)) __attribute__((section(".data_cygwin_nocopy"))) #define NO_COPY_INIT __attribute__((section(".data_cygwin_nocopy"))) +#define EXPORT_ALIAS(sym,symalias) extern "C" __typeof (sym) symalias __attribute__ ((alias(#sym))); + #if !defined(__STDC_VERSION__) || __STDC_VERSION__ >= 199900L #define NEW_MACRO_VARARGS #endif -- cgit v1.2.3