diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-16 03:18:09 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-16 03:18:09 +0000 |
| commit | 23259eea7209c2a9b8787f3bb2e77721da2c2708 (patch) | |
| tree | 761634a4fb5760937d7ceb267af2bb70ebeae7aa /win32 | |
| parent | 9c3e9ea790da787eb3482eb9f68613250984118f (diff) | |
| download | ruby-23259eea7209c2a9b8787f3bb2e77721da2c2708.tar.gz ruby-23259eea7209c2a9b8787f3bb2e77721da2c2708.tar.xz ruby-23259eea7209c2a9b8787f3bb2e77721da2c2708.zip | |
* include/ruby/ruby.h (PRI_PTRDIFF_PREFIX): must define as string.
if not, cause compile error in using PRI?VALUE.
* win32/Makefile.sub (config.h): add SIZEOF_INTPTR_T and
SIZEOF_UINTPTR_T for SIZEOF_VALUE.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/Makefile.sub | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index f76e2a7e4..dc2baf648 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -358,9 +358,13 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub !if "$(ARCH)" == "x64" || "$(ARCH)" == "ia64" #define SIZEOF_SIZE_T 8 #define SIZEOF_PTRDIFF_T 8 +#define SIZEOF_INTPTR_T 8 +#define SIZEOF_UINTPTR_T 8 !else #define SIZEOF_SIZE_T 4 #define SIZEOF_PTRDIFF_T 4 +#define SIZEOF_INTPTR_T 4 +#define SIZEOF_UINTPTR_T 4 !endif !if $(MSC_VER) < 1400 #define SIZE_MAX UINT_MAX |
