Cygwin: drop macro and code for CYGWIN_VERSION_DLL_EPOCH

fix a comment in check_sanity_and_sync() on the way

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-08-03 16:16:14 +02:00
parent c41f0e700a
commit 7ad791c1ee
2 changed files with 1 additions and 12 deletions

View File

@ -374,14 +374,7 @@ check_sanity_and_sync (per_process *p)
if (sizeof (per_process) != SIZEOF_PER_PROCESS)
api_fatal ("per_process sanity check failed");
/* Make sure that the app and the dll are in sync. */
/* Complain if older than last incompatible change */
if (p->dll_major < CYGWIN_VERSION_DLL_EPOCH)
api_fatal ("cygwin DLL and APP are out of sync -- DLL version mismatch %u < %u",
p->dll_major, CYGWIN_VERSION_DLL_EPOCH);
/* magic_biscuit != 0 if using the old style version numbering scheme. */
/* magic_biscuit must be SIZEOF_PER_PROCESS. */
if (p->magic_biscuit != SIZEOF_PER_PROCESS)
api_fatal ("Incompatible cygwin .dll -- incompatible per_process info %u != %u",
p->magic_biscuit, SIZEOF_PER_PROCESS);

View File

@ -13,10 +13,6 @@ details. */
#define CYGWIN_VERSION_DLL_MAJOR 3004
#define CYGWIN_VERSION_DLL_MINOR 0
/* Major numbers before CYGWIN_VERSION_DLL_EPOCH are incompatible. */
#define CYGWIN_VERSION_DLL_EPOCH 19
/* CYGWIN_VERSION_DLL_COMBINED gives us a single number representing the
combined DLL major and minor numbers. */