snowyu / libtorrent

Automatically exported from code.google.com/p/libtorrent
Other
1 stars 0 forks source link

Compile error with VC8 in config.hpp (trunk 9773) #588

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
config.hpp 358
inline int snprintf(char* buf, int len, char const* fmt, ...)

does not compile if included in c files (ed25519).
The doc say inline is allowed in c++ files only.

MassaRoddel

Original issue reported on code.google.com by webmas...@massaroddel.de on 8 Mar 2014 at 6:56

GoogleCodeExporter commented 9 years ago
actually 
int ret = _vsnprintf ...

isn't allowed too, should be:
int ret;
..
ret = _vsnprintf ...

btw, without inline it will give link errors (muliple definitions)

Original comment by webmas...@massaroddel.de on 8 Mar 2014 at 7:07

GoogleCodeExporter commented 9 years ago
sorry about that. I had a fix on my windows machine but was interrupted and 
forgot to check it in. it should be fixed now [9774] (but I haven't tested it 
on windows yet).

Original comment by arvid.no...@gmail.com on 9 Mar 2014 at 12:53