mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +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
|
package main
|
||||||
|
|
||||||
const preamble = "" +
|
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.
|
// in the LICENSE file.
|
||||||
|
|
||||||
#include <stdint.h>
|
#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>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#if __WORDSIZE < 32
|
||||||
|
#error "Puffs requires a word size of at least 32 bits"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user