mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Check that __WORDSIZE is at least 32 bits.
This commit is contained in:
1 parent
3f79592b9a
commit
3642dd3d0e
3 files changed
+9
-1
No files matched your search
@@ -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,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
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user