summaryrefslogtreecommitdiff
path: root/strftime.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-09 13:33:39 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-09 13:33:39 +0000
commite51e679f14f61f260275e97b6624bfcbae7c9c39 (patch)
tree354f92fd3a01a912a164936ee6619cc158c50de7 /strftime.c
parent98e949f7f8d9dbee8a22f2b2bc1d41f209345b7c (diff)
downloadruby-e51e679f14f61f260275e97b6624bfcbae7c9c39.tar.gz
* strftime.c: unused declarations removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'strftime.c')
-rw-r--r--strftime.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/strftime.c b/strftime.c
index 4f1481de7d..c390d2b6e0 100644
--- a/strftime.c
+++ b/strftime.c
@@ -122,25 +122,6 @@ extern char *strchr();
#define range(low, item, hi) max(low, min(item, hi))
-#if defined __WIN32__ || defined _WIN32
-#define DLL_IMPORT __declspec(dllimport)
-#endif
-#ifndef DLL_IMPORT
-#define DLL_IMPORT
-#endif
-#if !defined(OS2) && defined(HAVE_TZNAME)
-extern DLL_IMPORT char *tzname[2];
-#ifdef HAVE_DAYLIGHT
-extern DLL_IMPORT int daylight;
-#endif
-#ifdef HAVE_VAR_TIMEZONE
-extern DLL_IMPORT TYPEOF_VAR_TIMEZONE timezone;
-#endif
-#ifdef HAVE_VAR_ALTZONE
-extern DLL_IMPORT TYPEOF_VAR_ALTZONE altzone;
-#endif
-#endif
-
#undef min /* just in case */
/* min --- return minimum of two numbers */
@@ -197,15 +178,6 @@ rb_strftime_with_timespec(char *s, size_t maxsize, const char *format, const str
ptrdiff_t i;
int w;
long y;
-#ifndef HAVE_TM_ZONE
-#ifndef HAVE_TM_NAME
-#if ((defined(MAILHEADER_EXT) && !HAVE_VAR_TIMEZONE && HAVE_GETTIMEOFDAY) || \
- (!HAVE_TZNAME && HAVE_TIMEZONE))
- struct timeval tv;
- struct timezone zone;
-#endif
-#endif /* HAVE_TM_NAME */
-#endif /* HAVE_TM_ZONE */
int precision, flags, colons;
char padding;
enum {LEFT, CHCASE, LOWER, UPPER, LOCALE_O, LOCALE_E};