Fixed MSVC builds

This commit is contained in:
SChernykh
2024-02-11 17:08:28 +01:00
parent 6263c0bbda
commit 3327e7f54a
5 changed files with 18 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#ifndef P2POOL_EXTERNAL_SRC_COMMON_STDALIGN_H
#define P2POOL_EXTERNAL_SRC_COMMON_STDALIGN_H
#if !defined(__cplusplus) && defined(_MSC_VER) && (_MSC_VER < 1930)
#if !defined(__cplusplus) && defined(_MSC_VER)
#define alignas(x) __declspec(align(x))
#define alignof __alignof
#endif