1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Update libs.

This commit is contained in:
Nick Hastings
2023-10-13 14:51:08 -04:00
parent c0def21c93
commit 62490710ed
14 changed files with 11 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -103,7 +103,7 @@ DEFINES +=-DX64BITS -DPLATFORM_64BITS -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -D
UNDEF = -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE
BASE_CFLAGS = -fPIC -fno-strict-aliasing -Wall -Wsign-compare -Wno-conversion -Wno-overloaded-virtual -Wno-non-virtual-dtor -Wno-invalid-offsetof \
-Wno-unknown-pragmas -Wno-unused
-Wno-unknown-pragmas -Wno-unused -Wno-c++11-narrowing
SHLIBCFLAGS = -fPIC
# Clang >= 3 || GCC >= 4.7

View File

@ -30,7 +30,7 @@ DO_CC += -o $@ -c $<
LIB_OBJS= \
$(LIB_OBJ_DIR)/bitbuf.o \
$(LIB_OBJ_DIR)/byteswap.o \
$(LIB_OBJ_DIR)/cbyteswap.o \
$(LIB_OBJ_DIR)/characterset.o \
$(LIB_OBJ_DIR)/checksum_crc.o \
$(LIB_OBJ_DIR)/checksum_md5.o \
@ -42,7 +42,6 @@ LIB_OBJS= \
$(LIB_OBJ_DIR)/mempool.o \
$(LIB_OBJ_DIR)/memstack.o \
$(LIB_OBJ_DIR)/NetAdr.o \
$(LIB_OBJ_DIR)/newbitbuf.o \
$(LIB_OBJ_DIR)/processor_detect.o \
$(LIB_OBJ_DIR)/rangecheckedvar.o \
$(LIB_OBJ_DIR)/stringpool.o \
@ -50,9 +49,7 @@ LIB_OBJS= \
$(LIB_OBJ_DIR)/tier1.o \
$(LIB_OBJ_DIR)/undiff.o \
$(LIB_OBJ_DIR)/uniqueid.o \
$(LIB_OBJ_DIR)/utlbuffer.o \
$(LIB_OBJ_DIR)/utlbufferutil.o \
$(LIB_OBJ_DIR)/utlstring.o \
$(LIB_OBJ_DIR)/utlsymbol.o \
all: dirs $(NAME).$(SHLIBEXT)

View File

@ -22,7 +22,7 @@
<ProjectName>mathlib</ProjectName>
<ProjectGuid>{884C66F2-7F84-4570-AE6C-B634C1113D69}</ProjectGuid>
<RootNamespace>mathlib</RootNamespace>
<WindowsTargetPlatformVersion>10.0.22000.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">

View File

@ -1436,11 +1436,11 @@ public:
{
while( ! MessageWaiting() )
SignalEvent.Wait();
QueueAccessMutex.Lock();
QueueAccessMutex.Lock( __FILE__, __LINE__ );
if (! Head )
{
// multiple readers could make this null
QueueAccessMutex.Unlock();
QueueAccessMutex.Unlock( __FILE__, __LINE__ );
continue;
}
*( pMsg ) = Head->Data;
@ -1448,7 +1448,7 @@ public:
Head = Head->Next;
if (! Head) // if empty, fix tail ptr
Tail = NULL;
QueueAccessMutex.Unlock();
QueueAccessMutex.Unlock( __FILE__, __LINE__ );
delete remove_this;
break;
}
@ -1459,7 +1459,7 @@ public:
MsgNode *new1=new MsgNode;
new1->Data=Msg;
new1->Next=NULL;
QueueAccessMutex.Lock();
QueueAccessMutex.Lock( __FILE__, __LINE__ );
if ( Tail )
{
Tail->Next=new1;
@ -1471,7 +1471,7 @@ public:
Tail = new1;
}
SignalEvent.Set();
QueueAccessMutex.Unlock();
QueueAccessMutex.Unlock( __FILE__, __LINE__ );
}
};

View File

@ -16,6 +16,7 @@
#include "tier0/dbg.h"
#include <string.h>
#include <cstdint>
#include "tier0/platform.h"
#include "tier0/memalloc.h"

View File

@ -1157,7 +1157,7 @@ float bf_read::ReadBitCoordMP( bool bIntegral, bool bLowPrecision )
-1.f/(1<<COORD_FRACTIONAL_BITS_MP_LOWPRECISION)
};
//equivalent to: float multiply = mul_table[ ((flags & SIGN) ? 1 : 0) + bLowPrecision*2 ];
float multiply = *(float*)((uintptr_t)&mul_table[0] + (flags & 4) + bLowPrecision*8);
float multiply = *(float*)((uintp)&mul_table[0] + (flags & 4) + bLowPrecision*8);
static const unsigned char numbits_table[8] =
{

View File

@ -22,7 +22,7 @@
<ProjectName>tier1</ProjectName>
<ProjectGuid>{E1DA8DB8-FB4C-4B14-91A6-98BCED6B9720}</ProjectGuid>
<RootNamespace>tier1</RootNamespace>
<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">