public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: Drop pointless loadlib.h includes in utilities
@ 2022-06-06 10:41 Jon TURNEY
0 siblings, 0 replies; only message in thread
From: Jon TURNEY @ 2022-06-06 10:41 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f344134a191899f2dbb480251e5d083faae8051f
commit f344134a191899f2dbb480251e5d083faae8051f
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date: Fri Apr 30 14:50:02 2021 +0100
Cygwin: Drop pointless loadlib.h includes in utilities
These utilities used to LoadLibrary()/GetProcAddress(), but don't
anymore.
Diff:
---
winsup/utils/cygpath.cc | 1 -
winsup/utils/module_info.cc | 1 -
winsup/utils/path.cc | 1 -
winsup/utils/ps.cc | 1 -
4 files changed, 4 deletions(-)
diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc
index 9423a3052..10c31f896 100644
--- a/winsup/utils/cygpath.cc
+++ b/winsup/utils/cygpath.cc
@@ -29,7 +29,6 @@ details. */
#include <ntdll.h>
#include "wide_path.h"
-#include "loadlib.h"
static char *prog_name;
static char *file_arg, *output_arg;
diff --git a/winsup/utils/module_info.cc b/winsup/utils/module_info.cc
index e0bd4b71a..3e2fc28e2 100644
--- a/winsup/utils/module_info.cc
+++ b/winsup/utils/module_info.cc
@@ -12,7 +12,6 @@ details. */
#include <windows.h>
#define PSAPI_VERSION 1
#include <psapi.h>
-#include "loadlib.h"
/* Returns full name of Dll, which is loaded by hProcess at BaseAddress.
Uses psapi.dll. */
diff --git a/winsup/utils/path.cc b/winsup/utils/path.cc
index df0037c15..fe55a646d 100644
--- a/winsup/utils/path.cc
+++ b/winsup/utils/path.cc
@@ -28,7 +28,6 @@ details. */
#ifdef FSTAB_ONLY
#include <sys/cygwin.h>
#endif
-#include "loadlib.h"
#ifndef FSTAB_ONLY
/* Used when treating / and \ as equivalent. */
diff --git a/winsup/utils/ps.cc b/winsup/utils/ps.cc
index b51657535..dbcacbab4 100644
--- a/winsup/utils/ps.cc
+++ b/winsup/utils/ps.cc
@@ -21,7 +21,6 @@ details. */
#include <cygwin/version.h>
#include <ntdef.h>
#include <ntdll.h>
-#include "loadlib.h"
/* Maximum possible path length under NT. There's no official define
for that value. Note that PATH_MAX is only 4K. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-06 10:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-06 10:41 [newlib-cygwin] Cygwin: Drop pointless loadlib.h includes in utilities Jon TURNEY
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).