X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=common.h;h=f87a0607c72fd07352fe50fb93de360f1adc6b38;hb=aa66a4f765e74b1cfa3085a9c8fa47861a55063e;hp=210b8af85bc92a4188bc7074223a2640121cc5f6;hpb=f78b6c54a30669f2c6c9bd86c50844887dd88af9;p=xonotic%2Fdarkplaces.git diff --git a/common.h b/common.h index 210b8af8..f87a0607 100644 --- a/common.h +++ b/common.h @@ -33,11 +33,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # define MACOSX #endif -// Create our own define for Solaris -#if defined(__sun__) && defined(__svr4__) -# define SUNOS -#endif - #ifdef SUNOS #include // Needed for FNDELAY # define model_t dp_model_t // Workaround conflict with /usr/include/sys/model.h @@ -62,7 +57,7 @@ void SZ_HexDumpToConsole(const sizebuf_t *buf); void Com_HexDumpToConsole(const qbyte *data, int size); -unsigned short CRC_Block(const qbyte *data, int size); +unsigned short CRC_Block(const qbyte *data, size_t size); //============================================================================ @@ -153,6 +148,7 @@ void MSG_WriteShort (sizebuf_t *sb, int c); void MSG_WriteLong (sizebuf_t *sb, int c); void MSG_WriteFloat (sizebuf_t *sb, float f); void MSG_WriteString (sizebuf_t *sb, const char *s); +void MSG_WriteUnterminatedString (sizebuf_t *sb, const char *s); void MSG_WriteAngle8i (sizebuf_t *sb, float f); void MSG_WriteAngle16i (sizebuf_t *sb, float f); void MSG_WriteAngle32f (sizebuf_t *sb, float f);