Avoid compiler warnings in the Cygwin-w32 build

* src/w32fns.c [DEFAULT_IMAGE_BASE]: Don't define on Cygwin.
* src/cygw32.h (w32_get_resource): Add prototype.  (Bug#71786)
This commit is contained in:
Ken Brown 2024-06-26 15:57:39 -04:00
parent 8d354925dd
commit fb15affde8
2 changed files with 2 additions and 1 deletions

View file

@ -35,5 +35,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
extern void syms_of_cygw32 (void); extern void syms_of_cygw32 (void);
extern char * w32_strerror (int error_no); extern char * w32_strerror (int error_no);
extern LPBYTE w32_get_resource (const char * key, const char * name, LPDWORD type);
#endif /* CYGW32_H */ #endif /* CYGW32_H */

View file

@ -11284,7 +11284,7 @@ typedef USHORT (WINAPI * CaptureStackBackTrace_proc) (ULONG, ULONG, PVOID *,
configure.ac. */ configure.ac. */
#if defined MINGW_W64 && EMACS_INT_MAX > LONG_MAX #if defined MINGW_W64 && EMACS_INT_MAX > LONG_MAX
# define DEFAULT_IMAGE_BASE (ptrdiff_t)0x400000000 # define DEFAULT_IMAGE_BASE (ptrdiff_t)0x400000000
#else /* 32-bit MinGW build */ #elif !defined CYGWIN /* 32-bit MinGW build */
# define DEFAULT_IMAGE_BASE (ptrdiff_t)0x01000000 # define DEFAULT_IMAGE_BASE (ptrdiff_t)0x01000000
#endif #endif