luspi / photoqt

PhotoQt Image Viewer (mirror repo) - https://photoqt.org
GNU General Public License v2.0
49 stars 11 forks source link

Build fails: error: no member named 'setlocale' in namespace 'std'; did you mean simply 'setlocale'? #20

Closed yurivict closed 9 months ago

yurivict commented 9 months ago
/usr/ports/graphics/photoqt/work/photoqt-3.4/cplusplus/main.cpp:149:5: error: no member named 'setlocale' in namespace 'std'; did you mean simply 'setlocale'?
    std::setlocale(LC_NUMERIC, "C");
    ^~~~~~~~~~~~~~
    setlocale
/usr/include/locale.h:81:8: note: 'setlocale' declared here
char            *setlocale(int, const char *);
                 ^
1 error generated.

#include <clocale> is missing.

Version: 3.4 clang-16 FreeBSD 13.2

luspi commented 9 months ago

Thanks, added with 0ad4563f6cca77322ad2fe8d0310e807db4ba15f.