MaJerle / stm32fxxx-hal-libraries

Libraries for STM32F4xx and STM32F7xx built on HAL drivers from ST
MIT License
750 stars 431 forks source link

fatfs/drivers/fatfs_sd.c cannot be compiled with GCC 7.3.1 #32

Open alpo opened 5 years ago

alpo commented 5 years ago

Using gcc version 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] (GNU Tools for Arm Embedded Processors 7-2018-q3-update) I'm getting the error `fatfs/drivers/fatfs_sd.c:158:12: error: conflicting types for 'select'

/usr/arm-none-eabi/include/sys/select.h:62:5: note: previous declaration of 'select' was here int select P ((int n, fd_set __readfds, fd_set __writefds,` Shouldn't the use of system function names be considered as bad practice and exterminated?

MaJerle commented 5 years ago

@alpo yes, could be. Could you do please a pull request with valid change?