From a7ab35c1bb8653a4887d5c258da1eec0d8b43b61 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 28 Mar 2003 14:21:40 +0000 Subject: [PATCH] * include/sys/cygwin.h: Declare cygwin_internal as unsigned long. * external.cc (cygwin_internal): Define as unsigned long. * include/sys/cygwin.h: Move cygwin_internal outside of WINVER conditional. --- winsup/cygwin/ChangeLog | 10 ++++++++++ winsup/cygwin/external.cc | 2 +- winsup/cygwin/include/sys/cygwin.h | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 11cbe2900..51fbf1453 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,13 @@ +2003-03-28 Christopher Faylor + + * include/sys/cygwin.h: Declare cygwin_internal as unsigned long. + * external.cc (cygwin_internal): Define as unsigned long. + +2003-03-27 Christopher Faylor + + * include/sys/cygwin.h: Move cygwin_internal outside of WINVER + conditional. + 2003-03-27 Thomas Pfaff * thread.cc: Change 1==foo equations to foo==1 throughout. diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 582bb2add..a7d364a95 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -121,7 +121,7 @@ get_cygdrive_prefixes (char *user, char *system) return res; } -extern "C" DWORD +extern "C" unsigned long cygwin_internal (cygwin_getinfo_types t, ...) { va_list arg; diff --git a/winsup/cygwin/include/sys/cygwin.h b/winsup/cygwin/include/sys/cygwin.h index cc5641c4a..5985db68c 100644 --- a/winsup/cygwin/include/sys/cygwin.h +++ b/winsup/cygwin/include/sys/cygwin.h @@ -75,6 +75,7 @@ typedef enum } cygwin_getinfo_types; #define CW_NEXTPID 0x80000000 /* or with pid to get next one */ +unsigned long cygwin_internal (cygwin_getinfo_types, ...); /* Flags associated with process_state */ enum @@ -249,7 +250,6 @@ struct external_pinfo __gid32_t gid32; }; -DWORD cygwin_internal (cygwin_getinfo_types, ...); #endif /*WINVER*/ #ifdef __cplusplus