X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fface_position_cache.h;h=36cb06484f1724d4706ccda8cd21b4145a111108;hb=05a7da627959afef2198f2036f4144e3d8abfbda;hp=5ea0d938b2e1c778cc0cc312942e830d825f83d5;hpb=a98baef5e4fedca36c8c8755ad7c8233469f6a3f;p=dragonfireclient.git diff --git a/src/face_position_cache.h b/src/face_position_cache.h index 5ea0d938b..36cb06484 100644 --- a/src/face_position_cache.h +++ b/src/face_position_cache.h @@ -17,15 +17,14 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef FACE_POSITION_CACHE_HEADER -#define FACE_POSITION_CACHE_HEADER +#pragma once #include "irr_v3d.h" -#include "threading/mutex.h" #include #include #include +#include /* * This class permits caching getFacePosition call results. @@ -38,7 +37,5 @@ class FacePositionCache { private: static const std::vector &generateFacePosition(u16 d); static std::unordered_map> cache; - static Mutex cache_mutex; + static std::mutex cache_mutex; }; - -#endif