Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-06-01 09:57:54 +0400
committerChristopher Faylor <me@cgf.cx>2000-06-01 09:57:54 +0400
commit51859b536e5dbb578842dfdb7646644f4f1abf9e (patch)
treecc9069fa2ef3e9986953e2f6dd02fedfbae95908 /winsup/cygwin/uinfo.cc
parentb55cc8426622fef0cb86fe3240e4f132890ddeab (diff)
* exceptions.cc: Remove unneeded include.
* dcrt0.cc: Wrap LoadDLLfunc stuff in dummy function. * init.cc: Ditto. * uinfo.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r--winsup/cygwin/uinfo.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index 5305527ed..90bb72727 100644
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -179,6 +179,7 @@ cuserid (char *src)
}
}
+extern "C" {
LoadDLLinitfunc (netapi32)
{
HANDLE h;
@@ -189,8 +190,14 @@ LoadDLLinitfunc (netapi32)
api_fatal ("could not load netapi32.dll. %d", GetLastError ());
return 0;
}
+
+static void dummy_autoload (void) __attribute__ ((unused));
+static void
+dummy_autoload (void)
+{
LoadDLLinit (netapi32)
LoadDLLfunc (NetWkstaUserGetInfo, 12, netapi32)
LoadDLLfunc (NetGetDCName, 12, netapi32)
LoadDLLfunc (NetApiBufferFree, 4, netapi32)
-
+}
+}