aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/autoload.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-06-01 05:57:54 +0000
committerChristopher Faylor <me@cgf.cx>2000-06-01 05:57:54 +0000
commit51859b536e5dbb578842dfdb7646644f4f1abf9e (patch)
treecc9069fa2ef3e9986953e2f6dd02fedfbae95908 /winsup/cygwin/autoload.h
parentb55cc8426622fef0cb86fe3240e4f132890ddeab (diff)
downloadnewlib-51859b536e5dbb578842dfdb7646644f4f1abf9e.zip
newlib-51859b536e5dbb578842dfdb7646644f4f1abf9e.tar.gz
newlib-51859b536e5dbb578842dfdb7646644f4f1abf9e.tar.bz2
* exceptions.cc: Remove unneeded include.
* dcrt0.cc: Wrap LoadDLLfunc stuff in dummy function. * init.cc: Ditto. * uinfo.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/autoload.h')
-rw-r--r--winsup/cygwin/autoload.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/winsup/cygwin/autoload.h b/winsup/cygwin/autoload.h
index 9220e24..89f9eb0 100644
--- a/winsup/cygwin/autoload.h
+++ b/winsup/cygwin/autoload.h
@@ -65,10 +65,6 @@ static int dllname ## _init ()
#define LoadDLLmangle(name, n) #name "@" #n
#define LoadDLLfunc(name, n, dllname) LoadDLLfuncEx (name, n, dllname, 0)
#define LoadDLLfuncEx(name, n, dllname, notimp) \
-extern "C" { \
-static void name##_dummy () __attribute__ ((noreturn)) __attribute__ ((unused)) __attribute__ ((stdcall)); \
-static void name##_dummy () \
-{ \
__asm__ (".section .data_cygwin_nocopy,\"w\""); \
__asm__ (".global _" LoadDLLmangle (name, n)); \
__asm__ (".global _win32_" LoadDLLmangle (name, n)); \
@@ -82,7 +78,5 @@ __asm__ (" .long _" #dllname "_handle"); \
__asm__ (" .long " #n "+" #notimp); \
__asm__ (".asciz \"" #name "\""); \
__asm__ (".text"); \
-} \
-}
extern "C" void cygwin_dll_func_load () __asm__ ("cygwin_dll_func_load");