add #error for wordsize != 64

This commit is contained in:
2022-02-07 18:20:32 +01:00
parent f3718ab9fb
commit d7ce1c5102

View File

@@ -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;