[AD] errno_t and strerror_s non-standard types - cmake incorrectly detects strerror_s when not present |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
errno_t and strerror_s are used in file_stdio.c on line 302 when ALLEGRO_HAVE_STRERROR_S is defined. It is defined by a check for "check_function_exists(strerror_s ALLEGRO_HAVE_STRERROR_S)" on line 486 of CMakeLists.txt. strerror_s and errno_t are nowhere to be found in MinGW as indicated by a comment in file_stdio.c on line 289.
Not sure how to fix this, but currently Allegro fails to build on MinGW because of the faulty detection by CMake.
Edgar
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |