Check that __WORDSIZE is at least 32 bits.

This commit is contained in:
Nigel Tao committed 2017-05-26 09:23:55 +10:00
1 parent 3f79592b9a
commit 3642dd3d0e
3 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -6,5 +6,5 @@
package main
const preamble = "" +
"// Use of this source code is governed by a BSD-style license that can be found\n// in the LICENSE file.\n\n#include <stdint.h>\n" +
"// Use of this source code is governed by a BSD-style license that can be found\n// in the LICENSE file.\n\n#include <stdint.h>\n\n#if __WORDSIZE < 32\n#error \"Puffs requires a word size of at least 32 bits\"\n#endif\n" +
""
+4
View File
@@ -4,3 +4,7 @@
// in the LICENSE file.
#include <stdint.h>
#if __WORDSIZE < 32
#error "Puffs requires a word size of at least 32 bits"
#endif
+4
View File
@@ -5,6 +5,10 @@
#include <stdint.h>
#if __WORDSIZE < 32
#error "Puffs requires a word size of at least 32 bits"
#endif
#ifdef __cplusplus
extern "C" {
#endif