diff options
| author | Eli Zaretskii | 2016-10-01 10:12:53 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-10-01 10:12:53 +0300 |
| commit | bb2ef5c6f7058b149adc9230a3db7d1fbd423c51 (patch) | |
| tree | 4b613acfc1a3e832043296f85c0bf59398e34322 | |
| parent | 25dca60d5e3b2447352b7c51496baefb4ccd579d (diff) | |
| download | emacs-bb2ef5c6f7058b149adc9230a3db7d1fbd423c51.tar.gz emacs-bb2ef5c6f7058b149adc9230a3db7d1fbd423c51.zip | |
Avoid compilation warning on MinGW
* src/w32.c: Include string.h, needed for the prototype of
'strerror', shadowed by 'sys_strerror'. This avoids a compiler
warning about "no previous prototype". The string.h header
must be included after ms-w32.h, but before "#undef strerror".
| -rw-r--r-- | src/w32.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -40,9 +40,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 40 | #include <sys/utime.h> | 40 | #include <sys/utime.h> |
| 41 | #include <math.h> | 41 | #include <math.h> |
| 42 | 42 | ||
| 43 | /* Include CRT headers *before* ms-w32.h. */ | 43 | /* Include (most) CRT headers *before* ms-w32.h. */ |
| 44 | #include <ms-w32.h> | 44 | #include <ms-w32.h> |
| 45 | 45 | ||
| 46 | #include <string.h> /* for strerror, needed by sys_strerror */ | ||
| 46 | #include <mbstring.h> /* for _mbspbrk, _mbslwr, _mbsrchr, ... */ | 47 | #include <mbstring.h> /* for _mbspbrk, _mbslwr, _mbsrchr, ... */ |
| 47 | 48 | ||
| 48 | #undef access | 49 | #undef access |