diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-10-13 06:40:05 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-10-13 06:40:05 +0000 |
commit | 114598d40feee6dd9c5de45b0cc7cedefbdedd00 (patch) | |
tree | da3d139f7c74dc58b9bc11fc8d63290dccd35b12 /Build/source/texk/ps2pkm/util.h | |
parent | 79c720fad26a4abca2cf02568777b74ecd68a238 (diff) |
texk/ps2pkm: Minor bug fix. Avoid use of LONG (int for Unix but defined as long by MinGW)
git-svn-id: svn://tug.org/texlive/trunk@35365 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ps2pkm/util.h')
-rw-r--r-- | Build/source/texk/ps2pkm/util.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Build/source/texk/ps2pkm/util.h b/Build/source/texk/ps2pkm/util.h index 2db9a14ddd4..f38f9519d7c 100644 --- a/Build/source/texk/ps2pkm/util.h +++ b/Build/source/texk/ps2pkm/util.h @@ -50,10 +50,10 @@ typedef int boolean; * NOTE: These really should be based on PostScript types, * for example, sizeof(ps_integer), or sizeof(ps_unsigned) */ -#define MAX_ULONG (~(ULONG)(0)) +#define MAX_INT32 (~(uint32_t)(0)) /* This code is portable, assuming K&R C and 2's complement arithmetic */ #define MAX_INTEGER \ - ((LONG)((((ULONG) 1)<<(sizeof(ULONG)*8-1))-1)) + ((int32_t)((((uint32_t) 1)<<(sizeof(uint32_t)*8-1))-1)) #define MIN_INTEGER ((-MAX_INTEGER)-1) #define MAX_ARRAY_CNT (65535) @@ -74,8 +74,8 @@ typedef int boolean; /* Routines for managing virtual memory */ /***================================================================***/ extern boolean vm_init(void); -extern LONG vm_free; -extern LONG vm_size; +extern int32_t vm_free; +extern int32_t vm_size; extern char *vm_next; extern char *vm_alloc(unsigned int bytes); /***================================================================***/ @@ -187,7 +187,7 @@ extern void objFormatFile(psobj *, FILE *); extern void *Xalloc(size_t); extern void Xfree(void *); -extern long MakeAtom(const char *, unsigned int, int); +extern intptr_t MakeAtom(const char *, unsigned int, int); extern void QueryFontLib(char *, const char *, void *, int *); /* |