Make unichar type declaration more portable

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25696 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2007-12-07 09:43:36 +00:00
parent 7e6b567274
commit 9e9f9ec27f
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2007-12-07 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Additions/GNUstepBase/GSConfig.h.in:
* Headers/Foundation/NSString.h:
declare unichar as uint16_t
2007-12-07 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSRunLoop.m: Keep timers unordered and check all of them

View file

@ -198,7 +198,7 @@ typedef gsuaddr gsaddr;
* Native character type for use in systemcalls etc.
*/
#if defined(__MINGW32__)
#define GSNativeChar unichar
#define GSNativeChar uint16_t
#else
#define GSNativeChar char
#endif

View file

@ -36,7 +36,7 @@ extern "C" {
/**
* Type for representing unicode characters. (16-bit)
*/
typedef unsigned short unichar;
typedef uint16_t unichar;
@class NSArray;
@class NSCharacterSet;