client: util_vector: add include guards

This commit is contained in:
Alibek Omarov 2023-09-09 04:59:38 +03:00
parent d62c5fda47
commit fda1caafd6

View File

@ -15,7 +15,8 @@
// Vector.h // Vector.h
// A subset of the extdll.h in the project HL Entity DLL // A subset of the extdll.h in the project HL Entity DLL
// //
#ifndef UTIL_VECTOR_H
#define UTIL_VECTOR_H
// Misc C-runtime library headers // Misc C-runtime library headers
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -119,3 +120,4 @@ inline float DotProduct(const Vector& a, const Vector& b) { return(a.x*b.x+a.y*b
inline Vector CrossProduct(const Vector& a, const Vector& b) { return Vector( a.y*b.z - a.z*b.y, a.z*b.x - a.x*b.z, a.x*b.y - a.y*b.x ); }\ inline Vector CrossProduct(const Vector& a, const Vector& b) { return Vector( a.y*b.z - a.z*b.y, a.z*b.x - a.x*b.z, a.x*b.y - a.y*b.x ); }\
#define vec3_t Vector #define vec3_t Vector
#endif // UTIL_VECTOR_H