add #error for wordsize != 64
This commit is contained in:
4
c/bits.h
4
c/bits.h
@@ -1,6 +1,6 @@
|
|||||||
/* bits.h - bits functions.
|
/* bits.h - bits functions.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2021 Bruno Raoult ("br")
|
* Copyright (C) 2021-2022 Bruno Raoult ("br")
|
||||||
* Licensed under the GNU General Public License v3.0 or later.
|
* Licensed under the GNU General Public License v3.0 or later.
|
||||||
* Some rights reserved. See COPYING.
|
* Some rights reserved. See COPYING.
|
||||||
*
|
*
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
/* no plan to support 32bits for now...
|
/* no plan to support 32bits for now...
|
||||||
*/
|
*/
|
||||||
#if __WORDSIZE != 64
|
#if __WORDSIZE != 64
|
||||||
ERROR_64_BYTES_WORDSIZE_ONLY
|
#error "Only 64 bits word size supported."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef int64_t s64;
|
typedef int64_t s64;
|
||||||
|
Reference in New Issue
Block a user