Hi Jim, For some complicated reasons (too long to explain here), gettext needs to use safe-read.h with a C++ compiler on mingw and cygwin. Is this patch ok with you?
2006-12-23 Bruno Haible <[EMAIL PROTECTED]> * lib/safe-read.h [C++]: Wrap declarations in extern "C". *** gnulib-20061208/lib/safe-read.h.bak 2005-05-14 08:03:58.000000000 +0200 --- gnulib-20061208/lib/safe-read.h 2006-12-23 05:45:53.000000000 +0100 *************** *** 1,5 **** /* An interface to read() that retries after interrupts. ! Copyright (C) 2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by --- 1,5 ---- /* An interface to read() that retries after interrupts. ! Copyright (C) 2002, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by *************** *** 17,25 **** --- 17,35 ---- #include <stddef.h> + #ifdef __cplusplus + extern "C" { + #endif + + #define SAFE_READ_ERROR ((size_t) -1) /* Read up to COUNT bytes at BUF from descriptor FD, retrying if interrupted. Return the actual number of bytes read, zero for EOF, or SAFE_READ_ERROR upon error. */ extern size_t safe_read (int fd, void *buf, size_t count); + + + #ifdef __cplusplus + } + #endif