mateidavid/zstr

can't compile in clang

hero-clashes opened this issue · 3 comments

so I am trying to build for android and android ndk use clang
and I am getting this error

C:\enough_words_c_tcod\include\zstr/strict_fstream.hpp:77:12: error: cannot initialize a variable of type 'char *' with
      an rvalue of type 'int'
    char * p = strerror_r(errno, &buff[0], buff.size());
           ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

okay making it use the same code as the apple one fixed the issue

@ferdymercury not sure why you assigned me 😅

ahh because you solved it yourself apparently ;)