common: xash3d_types: undefine ARRAYSIZE before defining our ARRAYSIZE (actually we should stop using ARRAYSIZE instead)

This commit is contained in:
Alibek Omarov
2026-04-01 06:16:30 +05:00
parent 5aba96ce14
commit e5670afc4c

View File

@@ -122,6 +122,10 @@ typedef int qboolean;
#define EXPORT __declspec( dllexport )
#endif
#ifdef ARRAYSIZE
#undef ARRAYSIZE
#endif // ARRAYSIZE
#define ARRAYSIZE( p ) ( sizeof(( p ))/ sizeof(( p )[0] ))
#if defined( __SANITIZE_ADDRESS__ )