summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-14 02:48:08 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-14 02:48:08 +0000
commita54b4375f144a1a28412542baba57e5b45691cf3 (patch)
tree55ebe57005c68b66c1fd34996582416198b4790d /win32
parentb8bb21fd21c96212282b66cacdc29d356dd33bc6 (diff)
downloadruby-a54b4375f144a1a28412542baba57e5b45691cf3.tar.gz
ruby-a54b4375f144a1a28412542baba57e5b45691cf3.tar.xz
ruby-a54b4375f144a1a28412542baba57e5b45691cf3.zip
* time.c (search_time_t): support non 32bit time_t environments.
* win32/Makefile.sub (config.h): VC++8 have ``long long'' type. * win32/Makefile.sub (config.h): VC++8's time_t is 64bit value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub8
1 files changed, 8 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 0c48ba8bb..d6e478070 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -225,13 +225,21 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub
#define SIZEOF_INT 4
#define SIZEOF_SHORT 2
#define SIZEOF_LONG 4
+!if $(MSC_VER) >= 1400
+#define SIZEOF_LONG_LONG 8
+!else
#define SIZEOF_LONG_LONG 0
+!endif
#define SIZEOF___INT64 8
#define SIZEOF_OFF_T 4
#define SIZEOF_VOIDP 4
#define SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8
+!if $(MSC_VER) >= 1400
+#define SIZEOF_TIME_T 8
+!else
#define SIZEOF_TIME_T 4
+!endif
#define HAVE_PROTOTYPES 1
#define TOKEN_PASTE(x,y) x##y
#define HAVE_STDARG_PROTOTYPES 1