forked from jsonn/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build on ARM, insprired by upstream issue #2.
- Loading branch information
joerg
committed
Mar 10, 2015
1 parent
1a26ec6
commit d9877bc
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$NetBSD: patch-src_Types.h,v 1.1 2015/03/10 15:20:17 joerg Exp $ | ||
|
||
Make sure that PINYIN_ID_VOID is valid on platforms like ARM with | ||
char == unsigned char. | ||
|
||
--- src/Types.h.orig 2015-03-10 14:44:24.000000000 +0000 | ||
+++ src/Types.h | ||
@@ -26,7 +26,7 @@ | ||
|
||
namespace PyZy { | ||
|
||
-#define PINYIN_ID_VOID (-1) | ||
+#define PINYIN_ID_VOID ((char)-1) | ||
#define PINYIN_ID_ZERO (0) | ||
#define PINYIN_ID_B (1) | ||
#define PINYIN_ID_C (2) |