github.com/Bytom/bytom@v1.1.2-0.20210127130405-ae40204c0b09/mining/tensority/cgo_algorithm/lib/ustd.h (about) 1 /* ustd.h common macros and includes */ 2 #ifndef LIBRHASH_USTD_H 3 #define LIBRHASH_USTD_H 4 5 #if _MSC_VER >= 1300 6 7 # define int64_t __int64 8 # define int32_t __int32 9 # define int16_t __int16 10 # define int8_t __int8 11 # define uint64_t unsigned __int64 12 # define uint32_t unsigned __int32 13 # define uint16_t unsigned __int16 14 # define uint8_t unsigned __int8 15 16 /* disable warnings: The POSIX name for this item is deprecated. Use the ISO C++ conformant name. */ 17 #pragma warning(disable : 4996) 18 19 #else /* _MSC_VER >= 1300 */ 20 21 # include <stdint.h> 22 # include <unistd.h> 23 24 #endif /* _MSC_VER >= 1300 */ 25 26 #if _MSC_VER <= 1300 27 # include <stdlib.h> /* size_t for vc6.0 */ 28 #endif /* _MSC_VER <= 1300 */ 29 30 #endif /* LIBRHASH_USTD_H */