summaryrefslogtreecommitdiff
path: root/time64_config.h
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2009-04-25 17:51:38 -0500
committerCraig A. Berry <craigberry@mac.com>2009-04-25 18:11:55 -0500
commitd95a2ea538e6c332f36c34ca45b78d6ad93c3a1f (patch)
tree7af896a0f675ba7495ed49cb5f70ad4a26e60d65 /time64_config.h
parent4efe685a06ca02d3bdef0d82787eb46835ec9e7e (diff)
downloadperl-d95a2ea538e6c332f36c34ca45b78d6ad93c3a1f.tar.gz
Make time64 use NV for time_t, I32 for year, not Quad_t.
This means it should run on anything that does not have a 64-bit integer type available but does have a double. Presumably this includes platforms that define PERL_MICRO, so we now use the same extended time implementation for everything that runs Perl.
Diffstat (limited to 'time64_config.h')
-rw-r--r--time64_config.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/time64_config.h b/time64_config.h
index 6a1cd9d063..42cc12c88e 100644
--- a/time64_config.h
+++ b/time64_config.h
@@ -15,10 +15,10 @@
/* INT_64_T
- A 64 bit integer type to use to store time and others.
+ A numeric type to store time and others.
Must be defined.
*/
-#define INT_64_T Quad_t
+#define INT_64_T NV
/* USE_TM64
@@ -77,9 +77,9 @@
can handle. We will use your system functions if the time falls
inside these ranges.
*/
-#define SYSTEM_LOCALTIME_MAX CAT2(LOCALTIME_MAX,UL)
-#define SYSTEM_LOCALTIME_MIN CAT2(LOCALTIME_MIN,UL)
-#define SYSTEM_GMTIME_MAX CAT2(GMTIME_MAX,UL)
-#define SYSTEM_GMTIME_MIN CAT2(GMTIME_MIN,UL)
+#define SYSTEM_LOCALTIME_MAX CAT2(LOCALTIME_MAX,.0)
+#define SYSTEM_LOCALTIME_MIN CAT2(LOCALTIME_MIN,.0)
+#define SYSTEM_GMTIME_MAX CAT2(GMTIME_MAX,.0)
+#define SYSTEM_GMTIME_MIN CAT2(GMTIME_MIN,.0)
#endif /* TIME64_CONFIG_H */