diff liboctave/oct-time.cc @ 9946:55061c7c8d6e

start using gnulib
author John W. Eaton <jwe@octave.org>
date Wed, 09 Dec 2009 01:36:50 -0500
parents eb63fbe60fab
children 31436dcf7d0f
line wrap: on
line diff
--- a/liboctave/oct-time.cc
+++ b/liboctave/oct-time.cc
@@ -40,17 +40,13 @@
 #undef max
 #endif
 
+#include "strftime.h"
+
 #include "lo-error.h"
 #include "lo-math.h"
 #include "lo-utils.h"
 #include "oct-time.h"
 
-#ifndef HAVE_STRFTIME
-// Override any previous definition and use local version.
-extern "C" size_t
-strftime (char *s, size_t maxsize, const char *format, const struct tm *tp);
-#endif
-
 octave_time::octave_time (const octave_base_tm& tm)
 {
   struct tm t;
@@ -271,7 +267,7 @@
 	  buf = new char[bufsize];
 	  buf[0] = '\0';
 
-	  chars_written = ::strftime (buf, bufsize, fmt_str, &t);
+	  chars_written = my_strftime (buf, bufsize, fmt_str, &t, 0, 0);
 
 	  bufsize *= 2;
 	}