springlobby / springlobby

SpringLobby is a free cross-platform lobby client for the Spring RTS project
https://springlobby.springrts.com
GNU General Public License v2.0
81 stars 45 forks source link

mac os x compile errors #708

Closed jamerlan closed 8 years ago

jamerlan commented 8 years ago

I just noticed this message. Sorry if you know about this already (I have no idea)

https://springrts.com/phpbb/viewtopic.php?p=577020#p577020

/Users/herecomethej/springlobby/src/lsl/src/lslunitsync/image.cpp:55:20: error: use of undeclared identifier 'fmemopen'; did you mean 'freopen'? std::FILE* file = fmemopen((void)data, size, "rb"); ^~~~ freopen /usr/include/stdio.h:248:7: note: 'freopen' declared here FILE freopen(const char * restrict, const char * restrict, ^ /Users/herecomethej/springlobby/src/lsl/src/lslunitsync/image.cpp:55:29: error: cannot initialize a parameter of type 'const char ' with an rvalue of type 'void *' std::FILE file = fmemopen((void)data, size, "rb"); ^~~ /usr/include/stdio.h:248:38: note: passing argument to parameter here FILE freopen(const char * restrict, const char * restrict, ^ 2 errors generated.

abma commented 8 years ago

should be fixed by https://github.com/springlobby/lsl/commit/0ecd69ee394c4b2679e6857432e64ded69e50fdf