SLikeSoft / SLikeNet

SLikeNetâ„¢ is an Open Source/Free Software cross-platform network engine written in C++ and specifially designed for games (and applications which have comparable requirements on a network engine like games) building upon the discontinued RakNet network engine which had more than 13 years of active development.
https://www.slikenet.com/
Other
401 stars 63 forks source link

Missing <cstddef> #76

Open wernight opened 1 year ago

wernight commented 1 year ago

On Linux with recent G++ for v0.1.3 I get errors:

Source/include/slikenet/HTTPConnection2.h:76:143: error: 'ptrdiff_t' has not been declared
Source/include/slikenet/HTTPConnection2.h:94:17: error: 'ptrdiff_t' does not name a type
...

Probably not the best place, but a fix is to add:

  #include <cstddef>

on top of Source/include/slikenet/HTTPConnection2.h